Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@rikcodes/teamclaude

Latest version: v1.1.31-rik.2

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: rikbrown
2 Stars
1 Forks
50 Versions
3.0K Downloads
JavaScript Repo language

Scan summary

@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.

  • Releases: 50 versions; the latest 3 were published within 2 days (25 and 26 Nov 2026).
  • Findings: No rules fired in version 1.1.31-rik.2.
  • Downloads: 2,982 downloads.

Versions

50 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 1.1.31-rik.2

Findings

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.

README

The publisher’s own README, as collected from the registry.

TeamClaude

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): route gpt-* requests through a supervised local translating proxy to a ChatGPT subscription, under real model names — /model gpt-5.6-sol in 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/teamclaude

Already have upstream installed globally? Run npm uninstall -g @karpeleslab/teamclaude first — both packages provide the teamclaude and teamrouter commands.

Branch: rik/main. Everything else matches upstream.

CI npm version node License: MIT

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.

Quick start

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.

What it does

  • Rotates to the next account when the 5h session or 7d weekly bucket reaches the threshold (98% by default), preferring the account whose weekly quota resets soonest.
  • Tracks the per-model weekly cap separately, so an account out of Fable quota is skipped for Fable requests and still serves Opus and Sonnet.
  • Tells a spent quota bucket apart from a per-minute rate limit and only rotates on the first one. Rotating on a rate limit would just move the burst to the next account and drop the warm cache, so it paces the same account instead.
  • Paces requests onto a freshly switched account, so a herd of agents failing over at the same instant doesn't throttle it and cascade down the fleet.
  • TUI with quota bars, reset countdowns, activity log, and settings you can change while it runs, including adding and removing accounts.
  • Opt-in MCP endpoint that hands the same control plane to Claude Code as tools, so an agent can read the fleet's quota or switch accounts from inside a session.
  • Catches hardcoded api.anthropic.com endpoints (the Claude Design MCP, for one) through a local MITM forward proxy, not only what ANTHROPIC_BASE_URL covers.
  • Holds the request open until quota resets instead of returning 429 when every account is spent, so an unattended run finishes on its own (holdSeconds, off by default).
  • Steers new conversations to one account for a while (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.
  • Optionally leans on accounts with Anthropic's paid extra usage once every account is out of free quota, instead of returning 429 (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.
  • Separately opts subscriptions into using remaining included quota and then paid usage credits before lower-priority API capacity (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.
  • Refreshes OAuth tokens before they expire and writes them back to config. Client refreshes pass through untouched.
  • Pools OpenAI Codex subscriptions alongside Claude accounts (experimental): the Codex CLI is routed through the same proxy, by config or transparently through the MITM proxy, and rotates on its own quota.
  • Takes any Anthropic-compatible API (DeepSeek, GLM) as a low-priority fallback for when the Claude accounts are done.
  • Sends one account's traffic through its own HTTP or SOCKS proxy (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.
  • Serves OpenAI models next to Claude ones — a supervised local sidecar translates gpt-* requests onto a ChatGPT subscription, with real model names in /model and GPT subagents dispatchable from a Claude parent (sidecars + customModels, this fork).
  • Ships those subagents as a Claude Code plugin: one named agent per model and effort level, which the Agent tool's model parameter cannot express (/plugin install rikclaude-agents@rikclaude, this fork).
  • Shows the fleet's quota inside Claude Code: a readout in the prompt footer and per-seat bars in a pane, as a Claude Code mod (teamclaude-hud, /plugin install teamclaude-hud@rikclaude, this fork).
  • No dependencies. Node built-ins only.

Everyday commands

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.

Configuration

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.

How it works

  1. Claude Code talks to the local proxy instead of api.anthropic.com.
  2. The proxy picks an eligible account, injects that account's real token, and rewrites account_uuid in the body to match.
  3. anthropic-ratelimit-unified-* response headers feed the session (5h) and weekly (7d) quota view, which survives a restart.
  4. At the threshold, rotation moves on. On a quota 429 the request is resent on another account, so the client never sees the limit while some account still has headroom.
  5. Expiring tokens, transient network errors and client token refreshes are handled inside the proxy, so none of them interrupt the session.

Step-by-step lifecycle: docs/routing.md.

Fork features

How to set up and use the features in this fork. Everything else in this README is upstream behaviour.

OpenAI models via a Codex sidecar

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.

How models get into Claude Code

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:

  1. Check that your sidecar build lists it: 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.
  2. Add a customModels row. Codex publishes the window for each model as context_window in ~/.codex/models_cache.json; copy it to contextTokens.
  3. Start a new 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).

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @rikcodes/teamclaude

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229