Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 76
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-setup

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-team-setup in Claude Code

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 →

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.

openrouter-team-setup Install

Add to stack

Loading.