npx sideren is Sideren’s setup helper. It points the coding agents you already use, such as
Claude Code, Codex and opencode, at Sideren. Nothing to install: npx fetches it.
Quickstart
auto), offers to install any agent
you picked that is missing, writes the configs, and finishes with a live check: one real request
through each agent it configured.
If SIDEREN_API_KEY or an earlier setup already holds a key, the wizard asks whether to use it,
and then no new key is made. You can also choose to paste a key instead of signing in.
No browser on this machine (SSH, CI, a script or your dotfiles)? Pass a key and nothing is asked:
--tool all configures every supported agent at once. Add --install --yes to install
the missing ones too. --no-browser prints the sign-in link instead of opening a browser; open
it in a browser on the same computer.
The setup helper is zero-dependency, needs Node 18+, and never sends your key anywhere
except into your own local config files. Point it at a different gateway with
--url (default
is https://api.sideren.io).Set up with an older version of the helper? Your existing key, model ids and environment
variables keep working. Re-run
npx sideren setup to update those configs: older entries
are replaced, not duplicated, and model ids are rewritten to their plain form
(glm-5.3).Commands
The model catalog is dynamic
Model ids are not compiled into the helper. Each run resolves the catalog live fromGET /v1/models, caches it at ~/.sideren/catalog.json for six hours, and falls back to a
bundled snapshot only when there is no network. A model added to Sideren therefore appears
in the picker, and in Codex’s declared context window, with no new release of the helper.
Use --refresh-catalog to bypass the cache, or --offline to never touch the network.
Model lists stay up to date
Setup writes each agent’s model list once, and the helper keeps it current from then on. A new Sideren model shows up in every agent you set up without running setup again.- Setup remembers what it set up for each agent in
~/.sideren/refresh/state.json: the model you chose and the models it picked for the other slots. It never stores your key there. - Each agent starts the refresh in the background: Claude Code through a
SessionStarthook, Codex through itsnotifyhook, pi and omp through an extension, OpenCode through a plugin. It runs at most once every five minutes and changes only the model list. Your key, your chosen model and your other settings stay as they are. - When your plan changes, the agent’s setup runs again on its own with the choices you made, so the default models follow the new plan.
- Codex reads its model list when its app server starts, so after the list changes the helper restarts that server once no Codex turn is running.
- The helper’s local copy updates itself from npm once a day.
npx sideren status shows whether the refresh is on and when it last ran. Turn it off with
npx sideren refresh --off or SIDEREN_NO_REFRESH=1, and back on with npx sideren refresh --on.
Models and slots
--model <id>— the main model. The default isauto: the gateway picks per request. Setup also writes one or two stronger models and a lighter one into each agent’s other slots, chosen from the live model list for your plan.--stronger <ids>/--lighter <ids>— name those yourself (ornone).--small-model <id>— the background / fast model, where an agent has a separate slot.--effort <level>— the default thinking level:low|medium|high|xhigh|max(defaulthigh). A level you already set in an agent is kept as it is.--fallback <ids>— more models to register in each agent’s model picker.
Supported agents
--tool accepts (comma-separated, or all): claude-code, codex, opencode,
hermes, pi, senpi, omp, zcode, aider, crush, goose, qwen, droid,
openclaw, sideren-cli (alias se), continue, kilo, cline, zed, cursor,
roo, windsurf, cursor-cli, antigravity (alias agy), kiro, gemini-cli.
What the helper does per agent:
Flags
A few further flags (
--exact, --tool-guard, --no-allow-effort-mapping) stamp optional
request headers into the agents that support them — npx sideren help all lists them.
Installing the agents
The helper detects each agent by executable onPATH first, then by its config or extension
directory, and reports which signal it used. Already installed means skipped. In the wizard, an
agent you picked that is not installed gets an install offer before its config is written. If you
say no, its config is still written, ready for when you install it.
Where a vendor only ships a curl … | bash installer, that downloads and executes a
remote script. The helper labels it as such, prints the exact command, and runs nothing
until you agree (or pass --yes). Desktop apps (Cursor, Windsurf, Zed) are never fetched:
the helper prints the download link. npx sideren doctor lists the install command it would
use for each agent on your platform.
Safe by design
- Deep-merge — it merges into your existing config; it never overwrites a whole file.
- Managed blocks — additions are fenced with
# >>> sideren … >>>markers, so they are easy to find andunsetremoves only what the helper added. Blocks an older version wrote are replaced in place, not duplicated. - Backups — every change writes a timestamped
<file>.sideren.bak-<timestamp>copy first. - Idempotent — re-running updates in place instead of duplicating, and it will not clobber a model you already set (it prints the value instead).
Your key for Codex
Codex gets the key fromexperimental_bearer_token in ~/.codex/config.toml. Setup does
not require SIDEREN_API_KEY in the environment (Codex Desktop never sees User env vars).
--persist-key still writes that variable for shells and scripts if you want it.
Verify it worked
https://api.sideren.io. If it fails,
check npx sideren status and your key.