Coding-app accounts and models
Most people need nothing from this page: Code Config uses the sign-in your coding app already has. Come here when you want more than one, for example:
- a personal Claude subscription for side projects and a work one for your job,
- an API key or another provider instead of a subscription,
- a different model for Claude Code than its default.
A coding-app account is the sign-in Claude Code, Codex, or another coding app uses. It’s separate from your code-config.com account, and it stays on the computer where you set it up. In the Code Config app, pick one under Account when you launch. Code Config sets up your first accounts from the sign-ins already on the computer; after that, only Add account (csc account add) makes one, so an account you remove stays gone until you add it back.
Add the sign-in you already use
Section titled “Add the sign-in you already use”For Claude Code already signed in on this computer:
csc account add personal --host claude --import-currentcsc account getThe import copies the existing account files; it does not remove the original. Use a recognizable name. For another source folder, use --import-from <path> instead. Use --empty for an account folder you will sign in to separately. Choose one of these source options, not several.
--host claude or --host codex names the app the account is for; at a terminal, leave it out and csc asks which. Accounts do not automatically travel to another computer.
Choose how a launch picks an account
Section titled “Choose how a launch picks an account”A launch with no account named opens the account the mode picks:
- Last used: Opens the account you used most recently.
- Project: Each project opens the account you choose for it. Projects with none set use the last used account.
- Most usage left: Opens the account with the most of its allowance left right now.
- Ending soonest: Opens the account whose allowance resets soonest and still has some left.
csc account-mode set --mode most-leftThe four values are project, most-left, ending-soonest, and last. For Project, set a folder’s account with csc project set --account <account> from that folder. The Code Config app offers the same choice from the account tray, under How accounts are picked.
Name the account by the name or ID csc account get shows; the starred row is the account a launch from this folder opens. You can choose another account for an individual launch with csc launch --account <account>.
For a folder on another computer, a desktop app opens on this computer, so this computer’s mode picks its account. A terminal app runs on that computer and follows that computer’s mode, which you set there with csc account-mode set.
Use an API key or another provider
Section titled “Use an API key or another provider”For an account that uses an API key instead of a sign-in, add --api and --key-stdin. The command reads the key on its standard input, so it never shows in the command line; pipe it in from the command you already use to print the key:
csc account add work-api --host claude --api --key-stdin--preset <id> fills in a provider’s address and models, and csc account add --help lists the presets. --endpoint <url> sets a different address. Accounts are for Claude Code and Codex; the other coding apps manage their own sign-in.
Choose the model Claude Code uses
Section titled “Choose the model Claude Code uses”Code Config’s account-level model slots are available for Claude Code. Inspect the account’s slots, then set the role you want:
csc account get --account work-apicsc account set --account work-api --model primary=<model-id>Choose a model the endpoint actually serves. The Main model and Fast model are roles, not permanent vendor model names. Other apps use their own model configuration, which these account options do not set.
Changes touch only the supplied fields. Omitting --key-stdin retains an existing credential.
Check, fix, or remove an account
Section titled “Check, fix, or remove an account”| Command | Purpose |
|---|---|
csc account get --account <account> |
Inspect the provider, model slots, and the names of the settings it uses without printing a value, and how much of its allowance is used. |
csc account-mode get |
Show how a launch picks its account when you name none. |
csc account-mode set --mode <mode> |
Choose how a launch picks its account when you name none: project, most-left, ending-soonest, or last. |
csc account set --account <account> --import-current |
Copy missing files into an imported Claude Code account without overwriting existing files. |
csc account delete --account <account> |
Remove that account record, its managed folder, and its stored key. |
Check the account selected by the launcher, then confirm the coding app uses the account and model you chose. These commands support --help and --json.
Choose a coding app for app-specific configuration and limitations.