omp packages

sideren0.5.0

One command to put your coding agents on Sideren: it finds the agents on your machine, asks for your key and a model, writes each agent's own config and checks it live. Claude Code, Codex, pi, oh-my-pi, ZCode, Hermes, OpenCode, Kilo Code, Aider, Crush, Go

neelbrown Published 23 days ago MIT ~746 downloads/mo

Built for omp

The author tagged this package oh-my-pi.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

sideren

One command puts the coding agents on your machine on Sideren: one endpoint, one key, one model list.

npx sideren

It finds the agents you have installed, then asks three things:

  1. Which agents. Yes to the ones found, or choose from the full list.
  2. Your key. Press Enter to sign in with your browser: Sideren opens on a page that names the agents you picked, you check that it shows the same short code as the terminal, and press Connect. Setup gets a key of its own ("Agent setup" in your dashboard; it works until you revoke it). Or paste a key. A key from an earlier setup or from SIDEREN_API_KEY is offered first, so a re-run is one keypress and makes no new key. The key is checked with Sideren before anything is written.
  3. Your model. Auto (Sideren picks per request), your plan's default, or any model your plan includes.

Then each agent gets its own config, in its own format, and one live request is sent through it:

  SIDEREN  v0.4.7

    agents  Claude Code, OpenAI Codex, pi, oh-my-pi, Hermes Agent
    account ✓ signed in as you@example.com · Pro plan
    models  auto  ·  stronger @sdn/glm-5.3, gpt-5.6-sol  ·  lighter @sdn/glm-5.3-flash

  ✓ Claude Code   ~/.claude/settings.json  · live check ok, 812 ms
  ✓ OpenAI Codex  ~/.codex/config.toml  · live check ok, 640 ms
  ✓ pi            ~/.pi/agent/models.json  · live check ok, 590 ms
  ✓ oh-my-pi      ~/.omp/agent/models.yml  · live check ok, 604 ms
  ✓ Hermes Agent  ~/.hermes/config.yaml  · live check ok, 571 ms

No browser here (an SSH session, --no-browser)? The sign-in link is printed instead; press Esc to paste a key from sideren.io/dashboard/keys. Zero dependencies; needs Node 18 or newer.

Coming from LayerX1? npx layerx1 is now npx sideren. Your lx1_ key, your model ids and your LAYERX1_* variables keep working — see Coming from LayerX1.

Without questions

# every agent found on this machine, model auto
npx sideren setup --key sdn_your_key

# named agents and a named model
npx sideren setup --key sdn_your_key --tool claude-code,codex --model @sdn/glm-5.3

# see what would be written, write nothing
npx sideren setup --key sdn_your_key --print

setup exits with status 1 when an agent's live check fails (its config is still written), so a script can tell "configured" from "configured and working". npx sideren in a pipe or in CI runs setup when it has a key, and says how to give one when it has none. setup with no key in an interactive terminal signs in with the browser instead.

Unlimited Pass

The Unlimited Pass has its own address (https://pass.sideren.io), its own keys (sdn_pass_…) and its own models. One command connects it:

npx sideren pass

It asks which agents to set up, with the ones found on this machine ticked. Then your browser opens: check that it shows the same short code as the terminal and press Connect. The terminal gets a pass key (there is no key to copy) and sets up the agents you picked against the pass address, with the pass's models. The default model is glm-5.3; the list comes from the pass address itself.

# with a pass key from your pass page instead of a sign-in
npx sideren pass --key sdn_pass_your_key

# named agents, no question; another of the pass's models
npx sideren pass --tool claude-code,codex --model deepseek-v4.1-flash
  • Only what you pick is set up. --tool <ids> names the agents instead of asking. Where nothing can be asked (a pipe, CI) --tool is required, or --yes for the agents found; without either the command lists what it found and stops.
  • A re-run makes no new key. A pass holds a few keys, so the pass key an earlier run wrote on this machine is offered first.
  • No pass yet? The terminal says so and prints where to get it: sideren.io/pass. If the pass already holds every key it can, it says to revoke one on your pass page.
  • Your Sideren account is left alone. A pass key works only on the pass address, and --persist-key does nothing here: the key goes into the configs of the agents you picked (Zed and Goose read theirs from SIDEREN_API_KEY, so picking one of them puts it there). A later npx sideren never takes the pass key for an account key: it asks you to sign in. Each agent you set up here now points at the pass; npx sideren unset puts its config back the way it was.
  • --key needs no sign-in, so it also works on a computer with no browser.

Agents

Agent --tool What is written Wire
Claude Code claude-code ~/.claude/settings.json Anthropic /v1/messages
OpenAI Codex (CLI, IDE, app) codex ~/.codex/config.toml, ~/.codex/model-catalogs/sideren.json Responses
pi pi ~/.pi/agent/models.json, auth.json, settings.json Chat
senpi senpi the same three files under ~/.senpi/agent/ Chat
oh-my-pi omp ~/.omp/agent/models.yml, config.yml Chat
ZCode (CLI and desktop app) zcode ~/.zcode/v2/provider_config.json Anthropic /v1/messages
Hermes Agent hermes ~/.hermes/config.yaml, ~/.hermes/.env Chat
OpenCode opencode ~/.config/opencode/opencode.json Chat
Kilo Code kilo ~/.config/kilo/kilo.jsonc (Kilo 7), else opencode.json there Chat
Aider aider ~/.aider.conf.yml, ~/.aider.model.settings.yml, ~/.aider.model.metadata.json Chat
Crush crush ~/.config/crush/crush.json Chat
Goose goose ~/.config/goose/config.yaml, custom_providers/sideren.json, sideren.key Chat
Qwen Code qwen ~/.qwen/settings.json, ~/.qwen/.env Responses
Factory Droid droid ~/.factory/settings.json Responses
OpenClaw openclaw ~/.openclaw/openclaw.json, ~/.openclaw/.env Responses
se (Sideren's own agent) sideren-cli or se ~/.sideren/agent/config.yml, .env built in
Continue continue ~/.continue/config.yaml, ~/.continue/.env Chat
Cline cline ~/.cline/data/settings/providers.json and its model list Chat
Zed zed ~/.config/zed/settings.json Responses
Cursor (IDE), Roo Code cursor, roo nothing — exact steps are printed —

Paths are the macOS / Linux defaults; Windows paths, the variables that move a config directory and every per-agent detail are in TOOLS.md. --wire hermes=responses,crush=anthropic picks another wire for an agent that supports more than one.

Cursor CLI, Windsurf, Antigravity, Kiro and Gemini CLI cannot be pointed at another endpoint. --tool accepts their names and says so instead of writing a config that would not be used.

Each writer was checked against the real agent — what it reads, and what it then sends — except Zed (checked against its source) and the desktop apps and editor extensions, which were not run.

Models

Auto is the default. auto lets Sideren choose the model for each request. Pick a model in the wizard or name one with --model.

You get a set, not one model. Agents have more than one model slot — a stronger model for planning or review, a small one for titles, summaries and background work. Setup fills every slot the agent has, so nothing falls back to a model the agent made up:

  • your pick (or auto),
  • one or two stronger models,
  • one or two lighter ones.

They are chosen from the live list, from what your plan can use. Name them yourself with --stronger, --lighter and --small-model (none leaves a group empty). --fallback <ids> registers more models in each agent's model picker.

New models need no new release. Nothing about models is compiled into this package. Every run reads GET /v1/models and GET /v1/me from Sideren: the models, their context windows, thinking levels and what your plan allows. A model added to Sideren today is in the wizard and in npx sideren models on the next run, and in every agent's model list without a re-run (see New models in your agents). Without a network the last list is used (~/.sideren/catalog.json, six hours), then the snapshot shipped in the package.

Preview models stay out of the agents' lists until Sideren marks them active. Then they show up on their own. Name one with --model and setup uses it and keeps it.

New models in your agents

Setup records what it did for each agent in ~/.sideren/refresh/state.json: the model you chose, the set it picked, the wire and the effort. Your key is not stored there. When an agent starts, at most every 5 minutes, a small local refresh loads the live model list and your plan the same way setup does. It then updates the Sideren model list in that agent's config and nothing else. Keys, env, permissions, your other providers and the model you picked stay as they are. Most runs change nothing.

Agent What starts the refresh
Claude Code a SessionStart hook; Claude Code reloads its settings, so a new model is in /model in the same session
OpenCode a plugin (~/.config/opencode/plugins/sideren-models.js) that also adds a new model to the session it starts, when the refresh is done within 3 seconds
pi, senpi, oh-my-pi an extension (~/.pi/agent/extensions/sideren-refresh.ts, and the same under ~/.senpi, ~/.omp)
Codex notify (after each turn), when your config has no notify of its own
every other agent refreshed together with the ones above, and by every npx sideren setup
se needs none: it reads Sideren's live model list itself

The refresh runs from a local copy of this package in ~/.sideren/refresh/, so a hook never runs npx. It prints nothing and logs to ~/.sideren/refresh/refresh.log. Each write is atomic, and a file that changed while it ran is left alone.

  • New models show in every agent, preview ones included. Setup only ever makes an active model your default.

  • A plan change (an upgrade or a downgrade) sets each agent up again with the choices you made at setup, so its models and limits follow your new plan. You don't need to run anything.

  • Codex keeps its model list in a background server until that restarts. After Codex's list changes, the server is restarted while Codex is idle; if a task is running, it waits for the task to end. An open Codex window reconnects by itself.

  • Claude Code shows 24 models in /model. Models added since you set up come first for two weeks.

  • The local copy updates itself from npm once a day (a newer version only, once it has been published for 72 hours and is not deprecated, checked against the registry's checksum). SIDEREN_NO_AUTO_UPDATE=1 turns that off.

  • npx sideren refresh runs it now. npx sideren refresh --off turns the automatic refresh off, --on back on. SIDEREN_NO_REFRESH=1 turns it off in a shell.

  • npx sideren unset removes the hook, plugin, extensions, notify line and ~/.sideren/refresh.

Thinking effort

Your level stays yours. If you set your agent to high or xhigh, setup does not change it and it is sent as you set it.

  • Where you have set none, setup writes high, or the nearest level the model offers. --effort <level> picks another.
  • Each model is registered with the levels it really offers, so an agent's effort selector shows what the model can do.
  • Effort mapping is on: a level a model does not offer runs at the nearest one it does, instead of an error. --no-allow-effort-mapping turns that off.

Commands

Command What it does
npx sideren Set up the agents on this machine.
npx sideren setup --key <key> The same without questions.
npx sideren pass Connect your Unlimited Pass: pick the agents, sign in with your browser (--key <sdn_pass_…> for a key you already have).
npx sideren status Which agents are set up (--all lists every agent).
npx sideren test One live request through every agent's config. Exits 1 on a failure.
npx sideren models The model list, with each model's context window (--json for the raw list).
npx sideren unset Put every config back the way it was (--tool <ids> for some).
npx sideren refresh Bring every agent's model list up to date now (--off / --on for the automatic refresh).
npx sideren doctor Environment, install paths, where the model list came from, a live check per agent.
npx sideren install <ids> Install agents. Asks before running a vendor's install script.
npx sideren search <words> Search the web from this machine (--max <n>).
npx sideren fetch <url> Read a web page (--offset <n>, --max-chars <n>).
npx sideren mcp Sideren Search as an MCP server. Setup adds it to your agents.
npx sideren help all Every command, agent and flag.

The flags used most:

Flag
--key <key> Your sdn_… key. Read from SIDEREN_API_KEY or an earlier setup when left out; else you sign in with your browser.
--no-browser Print the sign-in link instead of opening a browser.
--tool <ids> Agents to set up, comma-separated, or all. Default: the ones found on this machine.
--model <id> The main model. Default auto.
--effort <level> The default thinking level. Default high.
--yes, -y Ask nothing (installs nothing without --install).
--no-install Never offer to install a missing agent.
--print Show the configs instead of writing them. Writes nothing at all.
--verbose, -v Show every note each agent's setup produced.
--no-verify Skip the live check.
--no-search Don't add Sideren Search to the agents.
--offline Never touch the network.
--home <dir> Write under <dir> instead of your home (sandboxes, tests).

Web search

Setup adds Sideren Search to Claude Code, Codex, OpenCode and Kilo Code. It gives the agent two tools, web_search and web_fetch, and runs on your machine (npx -y sideren mcp), so searches go out from your own connection. It needs no key.

The built-in search in Claude Code and Codex asks the API to run the search, which doesn't work through a gateway. Setup turns those off (WebSearch in Claude Code's deny list, web_search = "disabled" in Codex) so the agent uses Sideren Search instead. unset puts both back, and --no-search leaves all of it out.

The live check

After writing, setup sends one streamed request through each agent's config — read back from the file, not assumed: the agent's own endpoint, key, headers, model and thinking level. It passes when the answer streams to its end in that wire's own format. Each check has a deadline (--verify-timeout, 60 seconds) and is never retried, so it cannot be billed twice. The key is never printed.

Your config stays yours

  • Merged, never replaced. Setup adds Sideren to the file you have. Your other providers, settings and comments stay.
  • One thing is taken over: which model the agent starts on, so it starts on Sideren. What it was before is recorded.
  • npx sideren unset puts it back. Sideren's entries are removed and anything taken over is restored. A file setup created is removed.
  • The model refresh touches only the Sideren model list in each config (see above).
  • A file that does not parse is left alone, with a message saying which one.

Installing agents

When an agent you pick is not installed, npx sideren asks before setting it up: Codex is not installed. Install it now?, with the exact command it would run. Yes runs that agent's own installer (nothing is bundled in this package), then setup goes on; No still writes the config, for when you install it. Some vendors ship only a curl … | bash installer, which downloads and runs a remote script: setup says so, and nothing runs until you say yes. --no-install never asks. --yes asks nothing and installs nothing unless --install is given too. npx sideren install <ids> installs agents on their own.

Paying from wallet credit

On a subscription, setup uses the plan. --payment-mode payg makes Claude Code, Codex, Hermes or OpenCode spend purchased wallet credit instead (it needs a named --model). Run setup again without the flag, or with --payment-mode subscription, to go back. It does not change your subscription or buy credit.

Coming from LayerX1

LayerX1 is now Sideren. npx layerx1 prints a one-line notice and runs npx sideren.

What you have What happens
An lx1_… key Works everywhere an sdn_… key does.
lx1-* / sdn-* / bare model ids Still accepted. New configs are written with the public id: @sdn/glm-5.3 for open-weight models, the plain name (gpt-5.6-sol) for closed ones.
LAYERX1_* variables Each SIDEREN_* variable falls back to its LAYERX1_* name.
Configs written by npx layerx1 Keep working. npx sideren status flags them; running setup again replaces each LayerX1 entry with the Sideren one, so you never have two providers for one account.
npx sideren unset Removes Sideren and LayerX1 entries alike.

License

MIT