openrouter-team-setup
Skill by jeremylongshore
Configures OpenRouter for multi-user teams with per-user API keys, budget controls, and usage attribution. It is for developers and admins who manage shared OpenRouter access.
Install openrouter-team-setup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-team-setup ~/.claude/skills/openrouter-team-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-team-setup ~/.gemini/antigravity-cli/skills/openrouter-team-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install openrouter-team-setup in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The openrouter-team-setup skill configures OpenRouter for teams that share one account. It provisions a separate API key for each team member through the management API, each with a credit limit. It also offers a shared-key option, where each request is tagged with a user ID in the X-Title header so usage appears per user in the dashboard.
Spend can also be tracked locally. The skill sets up sqlite tables for daily per-user costs and budgets, checks the budget before each request, and records usage afterward. It adds model allowlists by user tier, a key dashboard script that uses curl and jq, and a weekly usage report. It is aimed at developers and administrators who manage OpenRouter access for several people.
Written from the project's SKILL.md and checked against it.
What it can do
- create_team_keyCreates a named API key with a credit limit for a team member via the management API.
- list_team_keysLists team keys with their usage, limit and free-tier flag.
- delete_team_keyRevokes a team member's key using its key hash.
- Shared key attributionTags requests with a user ID in the X-Title header so usage shows per user.
- check_user_budgetChecks whether a user is within their daily budget in a local sqlite database before a request.
- record_user_usageStores a request's cost and count for a user after the request runs.
- enforce_model_policyDowngrades requests for models that are not on the user's tier allowlist.
- team_usage_reportBuilds a list of per-user spend and request counts for the last seven days, sorted by cost.
What you need
- OpenRouter management key (sk-or-v1-...) from openrouter.ai/keys
- OpenRouter API key for the shared-key attribution pattern
- Python 3.8+ with the OpenAI SDK and requests
- sqlite3 (Python standard library)
- curl and jq for the dashboard script
Try asking
- Create OpenRouter keys for alice-backend and bob-frontend with a $50 limit each
- List all OpenRouter team keys with their usage and limits
- Show the weekly team usage report from team_usage.db
Good to know
- The management key can create, list and delete keys but cannot make completions calls.
- Per-user budgets are checked in a local sqlite database, not enforced by OpenRouter itself.
- Each key value is shown only once at creation.
- Model downgrades use the last model in the tier's allowlist.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/openrouter-team-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditGrepBash(python3:*)Bash(curl:*)Bash(jq:*)
Alternatives to openrouter-team-setup
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
openrouter-team-setup: common questions
Can each team member get their own OpenRouter key?
Yes. The create_team_key function posts to the keys API to create one named key with a credit limit per member.
What is needed to manage team keys?
A management key, exported as OPENROUTER_MGMT_KEY and created at openrouter.ai/keys. The source says it can create, list and delete keys but cannot call completions.
How are keys removed when someone leaves the team?
The skill revokes the key with delete_team_key, which calls the keys API using the key's stored hash.
How do I install openrouter-team-setup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openrouter-team-setup free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is openrouter-team-setup safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to openrouter-team-setup?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
