Add account groups with isolated CODEX_HOME support#75
Add account groups with isolated CODEX_HOME support#75mouaadsk wants to merge 1 commit intoLoongphy:mainfrom
Conversation
|
This adds quite a bit of complexity, but I’m not sure I understand the value of the feature yet. Could you explain the intended use case? What problem does this solve in practice? |
|
The goal is being able to make accounts groups so you can separate each task/project with its groups of accounts. |
|
Thanks for the explanation. I think the core use case here is already covered by the existing For example: mkdir -p /tmp/codex-auth-work
CODEX_HOME=/tmp/codex-auth-work codex-auth import /path/to/auth-jsons
CODEX_HOME=/tmp/codex-auth-work codex-auth list
CODEX_HOME=/tmp/codex-auth-work codex-auth switch 02
CODEX_HOME=/tmp/codex-auth-work codex-auth remove old-accountAnd for another pool: mkdir -p /tmp/codex-auth-personal
CODEX_HOME=/tmp/codex-auth-personal codex-auth import /path/to/other-auth-jsons
CODEX_HOME=/tmp/codex-auth-personal codex-auth listThat gives the same isolation model: separate |
|
Yes I agree , as it was also explicit settings and the creation was manual and also movement of the accounts from a CODEX_HOME to another is not covered , I think it would be better to have a group manager. New workflow, you launch codex-auth and it read all created codex_home folders existing with their accounts, you can create new one with it or remove one, controlling accounts by group (login, switching, enableing auto , etc) as it was covered before with manual switching. NOTE : I prefer the new workflow as it is more cli and you can with one launching of the cli control all groups (CODEX_HOMEs) and less manual hustle and more global control. |
Summary
CODEX_HOMEfolders.defaultmapped to the normal~/.codexhome and store named groups under~/codex-auth/groups/<name>.Notes
Testing
zig build run -- listzig build run -- group --helpzig build testzig test src/main.zig -lczig build -Dtarget=x86_64-linux-gnuzig build -Dtarget=x86_64-windows-gnu