I use and want

Astra Gate is an AI gateway that runs on your computer. It sets up 28 AI tools for you and sends their requests to 28 built-in providers or 16 plugin subscriptions, converting between protocols on your machine when they differ. Pick both ends and the steps you need appear below.

Common pairs

Claude Code with DeepSeek: 3 steps

  1. Step 1: Install Astra and open the console

    Needs Node.js 18 or later. The service runs in the background, and the console is at http://127.0.0.1:17321.

    npm install -g @aidotnet/astra-gateastra start --open

    Rather not install Node.js? Get the desktop app: it brings its own server, and every astra command below is also a button in the console.

  2. Step 2: Add DeepSeek with your API key

    Get a key at platform.deepseek.com. It is stored encrypted on this machine; the client's config gets an Astra token, never this key.

    astra provider add --template deepseek --key your key --name DeepSeek
  3. Step 3: Point Claude Code at Astra

    Astra backs up ~/.claude/settings.json first, changes only the entries it needs and writes in the gateway address and a token. Restart Claude Code for it to take effect. You can also click Enable on the console's Clients page.

    astra client enable claude-code --provider DeepSeek

    To undo it, run astra client disable claude-code and the config goes back to how it was.

What Astra does in between

  1. Claude Code
    SendsAnthropic Messages
  2. Astra · 127.0.0.1:17321
    Passes through
  3. DeepSeek
    AcceptsOpenAI ResponsesOpenAI ChatAnthropic Messages

Claude Code speaks Anthropic Messages and DeepSeek accepts it too, so requests pass through unchanged. Astra only keeps the books and runs the privacy check in between.

  • Records the tokens and cost of every request, totalled by client, token and model.
  • With the privacy guard on, checks each request on this machine before it leaves.
  • Backs up configs before changing them and keeps the first backup for good, so you can always restore.

See what you spend each day

Every request is costed at the model’s unit prices: input, output, cache and reasoning tokens. The Overview page sums today, 7, 30 or 90 days, for everything or for one client or token.

  • Daily bill turns today’s spend into one image by provider and model, ready to copy or save as a PNG.
  • Open any entry in the request log for its itemized cost, timing and protocol.
  • Amounts are estimates from unit prices and may differ from the provider’s actual bill.
  1. Console
  2. Overview
Docs: Overview (in Chinese)
The Overview page, a real screenshot of the Chinese UI (this machine’s data for the day)

Keep keys and personal data from leaving

Before a request leaves your computer, the privacy guard scans it locally for API keys, private keys, email addresses, phone numbers, internal addresses, card numbers, ID numbers and more. What it finds is flagged, blocked or masked, as you choose.

  • Masking swaps each value for a placeholder such as [EMAIL_1] before sending, and puts the original back in the reply.
  • Logs keep only masked excerpts; original values never reach the database.
  • Start with Detect only for a few days, then decide which categories to block.
  1. Console
  2. Privacy guard
Docs: Privacy guard (in Chinese)
The privacy guard overview, a real screenshot of the Chinese UI

One subscription for all your tools

Sign in to a Claude, ChatGPT or Copilot subscription once in Astra and Codex, Claude Code and OpenCode can all use it, with Astra converting protocols where needed. 7 subscriptions sign in out of the box, and 16 plugins add Cursor, Kiro, Trae and more.

  • A provider can hold several accounts: switch by hand, move on to the next after an error, or give new sessions to the least busy one.
  • When a client is bound to several providers, a rate limit or error on one moves it to the next, in order.
  1. Console
  2. Clients
  3. Provider
Docs: Clients (in Chinese)
The Clients page, a real screenshot of the Chinese UI: this machine’s clients on the left, the providers one uses on the right

One gateway for your team

Run Astra on a server and give each person a token. One command points their Claude Code, Codex and other clients at the company gateway, with usage, limits and alerts tracked per person.

  • People install only astra-connect, a few hundred KB with nothing left running; astra-connect leave restores their configs.
  • The command never contains the key: it is typed in the terminal, hidden, and stays out of the shell history.
  • For someone on the desktop app, send a one-time join link instead.
  1. Console
  2. Tokens
  3. Copy employee join command
Docs: Employee onboarding (in Chinese)
On an employee’s computer (example gateway address)
npx @aidotnet/astra-connect join https://astra.example.com# Rolling it out: the key comes from an environment variable, never an argumentASTRA_API_KEY=sk-astra-… npx -y @aidotnet/astra-connect join \https://astra.example.com --clients all --yes

Use it away from your desk

Turn on remote access in Settings and Astra runs a Cloudflare Tunnel that puts the gateway on the internet: no public IP and no port forwarding on your router.

  • Remote calls always need an Astra token. The admin console stays private unless you open it, and only after setting an admin password.
  • Token holders can check their own usage and limits on the /key page.
  • Clients on this machine keep talking to 127.0.0.1; their configs stay as they are.
  1. Console
  2. Settings
  3. Remote access
Docs: Remote access (in Chinese)
On another device (example domain)
curl https://astra.example.com/v1/chat/completions \-H "Authorization: Bearer sk-astra-…" \-H "Content-Type: application/json" \-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"Hello"}]}'
Quick tunnelNo account needed: you get a trycloudflare.com address right away. It cannot stream, so most coding clients will not work; use it to try things out.
Your domainUses a domain you host on Cloudflare and a tunnel token. Pick this for everyday use.

All your MCP servers at one address

The MCP gateway merges several remote MCP servers into one /mcp address, and each token decides which ones its holder can use. Servers that need OAuth upstream, such as the remote GitHub or Notion MCP, are authorized once in Astra.

  • Off by default; while off, /mcp answers 404 and nothing new is exposed.
  • Apply to clients writes it into Claude Code’s and Codex’s MCP config in one go, without touching an entry of yours with the same name.
  • Only http servers are forwarded; stdio servers on this machine are not included.
  1. Console
  2. MCP gateway
Docs: MCP gateway (in Chinese)
Add Astra to Claude Code
claude mcp add --transport http astra http://127.0.0.1:17321/mcp \--header "Authorization: Bearer sk-astra-…"