← All posts

Set up every coding agent on your machine with one command

npx paramhub setup finds the coding agents you have installed, shows each file it will change, and writes the settings. npx paramhub undo puts them back.

Pointing a coding agent at a new model means finding its config file, learning its format and getting the base URL, key and model name right. With several agents installed, that is several files in several formats. npx paramhub setup does it in one go.

npx paramhub setup

It needs Node.js 18 or later.

What it does

  1. Asks for your API key and checks it before anything else.
  2. Lets you pick a default model.
  3. Finds the coding agents installed on your machine. You choose which ones to set up.
  4. Shows every file it will change, then writes only after you confirm.

It supports the 11 agents we've tested: Claude Code, Codex CLI, OpenCode (1.x and 2.x), Kilo Code CLI, Pi, oh-my-pi, Cline CLI, Hermes Agent, Qwen Code, goose and Aider.

What it changes

Setup edits only the settings it needs in each agent's own config file. Your other settings, comments and providers stay as they are.

Agent File
Claude Code ~/.claude/settings.json (the env block)
Codex CLI ~/.codex/config.toml
OpenCode ~/.config/opencode/opencode.jsonc (2.x) or opencode.json (1.x)
Kilo Code CLI ~/.config/kilo/kilo.jsonc
Pi ~/.pi/agent/models.json, settings.json
oh-my-pi ~/.omp/agent/models.yml, config.yml
Cline CLI runs cline auth
Hermes Agent ~/.hermes/config.yaml, ~/.hermes/.env
Qwen Code ~/.qwen/settings.json
goose ~/.config/goose/config.yaml, custom_providers/paramhub.json
Aider ~/.aider.conf.yml, ~/.aider.model.metadata.json
  • The key goes into the agent's config, so you don't have to export anything in your shell. Files that hold the key can be read only by you.
  • Context window and output limit are filled in where the agent's config has a place for them, so the agent knows how much the model can take.
  • For Codex, setup points the ParamHub provider at a model catalog that gives Codex the context window. It applies only to that provider, so your other Codex models are not affected.

Undo

npx paramhub undo

Undo puts back the settings from before the most recent setup and keeps changes you or the agent made afterwards. Run it again to undo an earlier setup. Before each setup, the original files are copied to ~/.paramhub/backups/.

Without prompts

For scripts and new machines:

export PARAMHUB_API_KEY=...
npx paramhub setup --model kimi-k3.1-pro --agents claude-code,codex --yes

Read the key from your password manager or secret store rather than typing it with --key. A key on the command line stays in your shell history and in npm's log files.

npx paramhub agents lists the agents setup supports and which ones it found on your machine.

Prefer to do it by hand?

Each agent's setup guide has the exact configuration, and how coding agents switch models explains what each setting does.

Try it in your own agent

Setup guides and test results for 11 coding agents.

See setup guidesGet started
Additional services
Need this done for you?

Agent setup, model evaluations, security testing: if it runs on LLM tokens, we take it on.

Talk to us on Discord

More posts