Scan your whole stack
From OX Research Newsroom
Are you using @rikcodes/teamclaude?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.31-rik.2
@rikcodes/teamclaude was last scanned on 26 Nov 2026 at version 1.1.31-rik.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.31-rik.2 LATEST | 26 Nov 2026 | No rules fired |
| 1.1.31-rik.1 | 26 Nov 2026 | No rules fired |
| 1.1.29-rik.4 | 25 Nov 2026 | No rules fired |
| 1.1.29-rik.3 | 13 Nov 2026 | Not shown |
| 1.1.29-rik.2 | 13 Nov 2026 | Not shown |
Findings for v1.1.31-rik.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.1.31-rik.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Fork notice (rikbrown). This fork adds one feature on top of KarpelesLab/teamclaude, currently based on upstream 1.1.31:
- OpenAI models via a Codex sidecar (
sidecars+customModels, opt-in): routegpt-*requests through a supervised local translating proxy to a ChatGPT subscription, under real model names —/model gpt-5.6-solin the picker and typed, correct 272k context sizing, and dispatchable GPT subagents — while Claude traffic stays on the Claude accounts.Setup and use: Fork features.
Published as
@rikcodes/teamclaude; self-update tracks that package, so installs of this fork can never be replaced by an upstream release.npm install -g @rikcodes/teamclaudeAlready have upstream installed globally? Run
npm uninstall -g @karpeleslab/teamclaudefirst — both packages provide theteamclaudeandteamroutercommands.Branch:
rik/main. Everything else matches upstream.
Multi-account proxy for Claude Code and Codex: it pools Claude Max, ChatGPT/Codex, API-key and third-party backend accounts, and rotates on quota.
It sits between the coding agent and the provider's API, holds several accounts, and moves to the next one when the current account gets close to its session or weekly limit. The session keeps running instead of stopping on a 429. Claude accounts serve Claude Code, Codex accounts serve the Codex CLI, and both pools share one proxy.
It is built for one person. The "team" is the agents: someone running ten, or fifty, coding-agent sessions at once needs more than one subscription, and switching accounts by hand each time one fills up is what this replaces. Every account in the pool is your own, and the client is the provider's own CLI. It is not a way to share an account between people, and not a bridge for other clients onto subscription credentials — see Scope.
Node.js 20+ required.
npm install -g @rikcodes/teamclaude
teamclaude login # browser OAuth, run it once per account
teamclaude server # start the proxy, shows the TUI
teamclaude run # in another terminal: Claude Code through the proxy
Already logged into Claude Code? teamclaude import takes its credentials instead of a fresh OAuth round. A container image is on GHCR — see Running in a container. API keys, and one email holding accounts in several orgs, are covered in docs/accounts.md.
api.anthropic.com endpoints (the Claude Design MCP, for one) through a local MITM forward proxy, not only what ANTHROPIC_BASE_URL covers.holdSeconds, off by default).teamclaude steer, or t in the TUI) and leaves the running ones where their prompt caches are, so one account's week can be spent first. With --redeem it then spends that account's banked reset, once.allowExtraUsage, off by default — it bills real money). Quota between the switch threshold and 100% is used first, on any account; billing starts only when none is left, and stops as soon as a window resets.preferExtraUsage, alongside allowExtraUsage). Manual subscription switches and conversation pins yield to eligible included quota. Eligible route pins, explicit API choices and hard restrictions still apply.login --routing "socks5h://user:pass@host:1080"), sign-in and token refresh included, and leaves every other account alone. If that proxy goes down, the request fails over to the next account.gpt-* requests onto a ChatGPT subscription, with real model names in /model and GPT subagents dispatchable from a Claude parent (sidecars + customModels, this fork).model parameter cannot express (/plugin install rikclaude-agents@rikclaude, this fork).teamclaude-hud, /plugin install teamclaude-hud@rikclaude, this fork).teamclaude accounts # accounts with tier and token status
teamclaude status # live proxy status, needs a running server
teamclaude disable <name> # pause an account without removing it
teamclaude priority <name> 1 # rotation order, lower = preferred
teamclaude alias --install # make plain `claude` go through the proxy
teamclaude help # everything else
In the local TUI, r opens the account picker and its Resets panel. Choose a banked Claude reset or Codex reset credit, press Enter to review the warnings, then y to spend it. r reads fresh details; Esc closes the panel. A spend cannot be undone.
Full reference, including TUI keys: docs/usage.md.
Config is at ~/.config/teamclaude.json ($XDG_CONFIG_HOME honoured) and is meant to be hand-editable. A proxy API key is generated on first use. Observed quota goes to a separate teamclaude.state.json next to it, safe to delete since quota gets re-learned from traffic.
Every field, plus environment variables and network tuning: docs/configuration.md.
api.anthropic.com.account_uuid in the body to match.anthropic-ratelimit-unified-* response headers feed the session (5h) and weekly (7d) quota view, which survives a restart.Step-by-step lifecycle: docs/routing.md.
How to set up and use the features in this fork. Everything else in this README is upstream behaviour.
A Claude Code session can use OpenAI models alongside the Claude accounts. They are billed to a ChatGPT Plus/Pro subscription and use their real model names in the same session. TeamClaude does not translate the wire format itself. A local sidecar does this: raine/claude-code-proxy speaks /v1/messages on the front and the Codex Responses API on the back. TeamClaude starts and supervises this process. It sends every gpt-* request to the sidecar and keeps every other request on the Claude accounts.
1. Install the sidecar and log it into your ChatGPT account (one time):
curl -fsSL https://raw.githubusercontent.com/rikbrown/claude-code-proxy/rik/main/scripts/install.sh | bash
claude-code-proxy codex auth login
This installs rikbrown/claude-code-proxy, a fork of the reference sidecar. Take the fork rather than upstream's Homebrew build: it forwards Codex's quota headers, without which every bar on the account reads unknown, and it lets you raise the 60-second header timeout that otherwise kills a long reasoning turn. See Timeouts.
2. Connect it — add four pieces to ~/.config/teamclaude.json:
{
"sidecars": [
{ "name": "codex", "command": ["claude-code-proxy", "serve", "--no-monitor", "--port", "18765"] }
],
"accounts": [
{ "name": "codex", "type": "oauth", "accessToken": "unused-local-sidecar",
"upstream": "http://127.0.0.1:18765", "priority": 100 }
],
"routes": [
{ "name": "codex", "match": ["gpt-*"], "accounts": ["codex"] },
{ "name": "anthropic", "match": ["*"], "accounts": ["your-claude-account", "..."] }
],
"customModels": [
{ "model": "gpt-5.6-sol", "label": "GPT-5.6 Sol", "contextTokens": 272000 },
{ "model": "gpt-5.6-terra", "label": "GPT-5.6 Terra", "contextTokens": 272000 },
{ "model": "gpt-5.6-luna", "label": "GPT-5.6 Luna", "contextTokens": 272000 }
]
}
sidecars — the process that TeamClaude owns. It starts with the server, restarts with backoff after a crash, and stops on shutdown. Its pid, restart count and latest stderr lines are in teamclaude status --json under sidecars.accounts — the sidecar as a third-party backend account. The token is a placeholder because the sidecar uses its own Codex login for authentication. priority: 100 is the convention for third-party backends. The routes determine what reaches it.routes — sends gpt-* to the sidecar. *Keep the catch-all `route.** Without it, the sidecar joins the exhaustion-fallback pool. A spent Claude fleet would then silently send Claude-model requests to the sidecar, which mapsclaude-*` names onto GPT models. With the route, a request can reach a GPT model only when it asks for one by name.customModels — the rows that make the models visible to Claude Code (next section).3. Restart the server. teamclaude status --json should show the sidecar as running. If it enters a crash loop, stderrTail explains why — the usual cause is that the sidecar is not logged in.
Claude Code offers only models that it knows, and it does not know gpt-*. customModels closes this gap. Each row contains a model id that the proxy can serve, an optional picker label and description, and the model's context window.
At launch, teamclaude run — and the claude alias, which passes through run — gives these rows to Claude Code:
| Row field | Where it ends up |
|---|---|
model, label, description |
A /model picker row under the real model id (--settings), so /model gpt-5.6-sol works picked or typed |
model |
Nothing by default. Set "customModelAgents": true and each row also becomes a plain subagent named after the model (--agents), so "dispatch a gpt-5.6-terra subagent" works from a Claude parent. Off because those agents pin no effort and outrank every agent file on disk — prefer the effort-pinned plugin agents |
contextTokens |
CLAUDE_CODE_MAX_CONTEXT_TOKENS, set to the largest value across rows, so Claude Code compacts at the real window instead of assuming 200k |
For tools that spawn claude themselves, teamclaude env can set only environment variables. It carries the window and ANTHROPIC_CUSTOM_MODEL_OPTION for the first row. Agents do not depend on either mode: they are read from disk, whether they come from the rikclaude-agents plugin or from a ~/.claude/agents/<name>.md you write with model: gpt-5.6-terra in its frontmatter.
Each request is routed by the model name in its body, so one session can freely mix models: use claude --model gpt-5.6-sol for a whole session, /model gpt-5.6-sol during a session, or a Claude parent that dispatches a GPT subagent.
To add a model:
curl -s http://127.0.0.1:18765/v1/models. The sidecar has its own allow-list and rejects any id that it does not know, regardless of the TeamClaude configuration. Upgrade the sidecar if the id is missing.customModels row. Codex publishes the window for each model as context_window in ~/.codex/models_cache.json; copy it to contextTokens.teamclaude run session. The rows are read at launch, so you do not need to restart the server. If you upgraded the sidecar binary, restart the server — or send SIGTERM to the sidecar process and let the supervisor restart it with the new binary. The first SIGTERM only starts a graceful shutdown, which a request in flight holds open; send it a second time to force the exit.Claude Code prints one [claude-code:unrecognized_model] line to stderr for each custom model. This is expected; suppressing it would lose the correct context window. The quota bars for the sidecar account show unknown unless the sidecar forwards Codex's rate-limit headers, which the fork build in step 1 does and upstream's does not — see Quota. Keep the sidecar on loopback.
The sidecar appears under the account table as a ⚙ line rather than a row because it holds no subscription, is the only account its route can use, and never rotates. The line also shows its supervised process state (up pid 98018, or down (code 1) 3 restarts), followed by what the sidecar reports about itself while it is up (2 active 3 errors, read from its own /monitor endpoint; each is omitted at zero, and both are omitted if that endpoint does not answer).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.