Skip to main content
Every request to https://mcp.tashvi.ai/mcp carries an API key in the Authorization header:
A key belongs to one Tashvi account and acts as that account. Its calls are charged to that account’s API credits.

Make a key

1

Open the keys page

Sign in at console.tashvi.ai/keys. Your email address must be verified first.
2

Name it and choose what it can do

Name the key after where it will live, like “Claude Code on my laptop”. Choose its scopes, and set an expiry date or a monthly spending cap if you want one.
3

Copy it once

The key is shown once, when you make it. Tashvi keeps only a fingerprint of it, so a lost key can’t be shown again: revoke it and make a new one.
You can have up to 10 active keys. Make one per machine or app, so you can revoke one without breaking the others.

Scopes

A key does only what its scopes allow. A tool the key’s scopes don’t cover isn’t listed to it by tools/list, and can’t be called. A new key gets all five unless you choose fewer. A key with only read can look but never spend.
ledger lets the key change your Tashvi One books: tashvi_one_change books stock, opens sales and records payments when it’s called. Leave ledger off any key that doesn’t need it.

Expiry

A key with an expiry date stops working at that moment, and every call with it gets 401. Make a new key before the old one runs out.

Monthly spending cap

A cap is a dollar limit on what one key can spend in a month, on top of your account balance. When a key reaches its cap, calls that cost money are refused with 402 and the code key_spend_cap_reached, which says when the cap resets (resets_at). Raise the cap in the console, or wait for the reset. Give every key an agent runs unattended a cap.

Keep the key safe

  • Use an environment variable. Tashvi’s setup examples read TASHVI_API_KEY.
  • Never put a key in client code: a web page, a mobile app, a browser extension or a public repository. Anyone who sees it can spend your credits. Calls from a web page are refused anyway (403 origin_not_allowed).
  • Never paste a key into a chat. Put it in your app’s config or environment, not in a message to an AI.
  • Keep it out of logs and screenshots.

Revoke and rotate

Revoke a key at console.tashvi.ai/keys. It stops working within about 10 seconds. To rotate a key without downtime:
  1. Make a new key.
  2. Put it where the old one was, and restart the app.
  3. Revoke the old key.
If you think a key has leaked, revoke it first and rotate after.

What a key can never do

Some things only a signed-in person can do. A key is refused on all of them, whatever its scopes:
  • Make, list or revoke keys
  • Buy credits, change the plan or billing
  • Delete the account, or change email or password
  • Change team or workspace membership
  • Connect other apps to the account
A key reaches Tashvi through the MCP endpoint and the account endpoints. It isn’t a key for Tashvi’s other internal routes: those answer 403 api_key_scope. If the account is suspended or deleted, its keys stop working within about a minute.

Sign in instead of a key (rolling out)

Apps that add MCP servers as connectors, like claude.ai and ChatGPT, can’t send a key. They connect by sign-in (OAuth): you add https://mcp.tashvi.ai/mcp as a connector, press Connect, sign in to Tashvi and press Allow. A signed-in app gets the same five scopes a new key gets. Sign-in is rolling out and isn’t on for every account yet. Until it reaches yours, use a key from an app that can send one: Claude Code, Claude Desktop, Cursor, Codex and most MCP clients can. See Connect an agent. You can see and disconnect signed-in apps in the studio under Settings → Connected AI apps.