Skip to content
project8

Docs

Connect your tool.

Base URL https://api.project8.app. Also available as a plain Markdown guide.

Project8 is an independent gateway built on third-party AI models. Not affiliated with or endorsed by Anthropic. Claude is a trademark of Anthropic.

01

Quick start

npx project8-cli asks for your key, writes the Claude Code settings and checks the connection. The scripts configure Claude Code too and need Node.js.
Setup wizard
npx project8-cli
macOS / Linux
curl -fsSL https://project8.app/setup.sh | bash
Windows (PowerShell)
irm https://project8.app/setup.ps1 | iex

To remove the wizard’s settings, run npx project8-cli uninstall.

One key, one person: a key works on up to 5 devices at the same time. Keys used on more devices are treated as shared and suspended without refund.

02

Set up your tool

  • Run npx project8-cli and paste your key, or edit the settings file yourself.
  • The VS Code extension for Claude Code reads the same file.
  • Restart Claude Code.
~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_BASE_URL": "https://api.project8.app",
    "CLAUDE_CODE_AUTO_MODE_SERVER": "0"
  }
}

03

API reference

API endpoints
POST /v1/messagesCreate a message in the Anthropic format. Set "stream": true for server-sent events. API key required.
POST /v1/messages/count_tokensCount the tokens of a message without sending it. API key required.
POST /v1/chat/completionsCreate a completion in the OpenAI format. API key required.
GET /v1/modelsList the model IDs the server accepts, with context windows.
GET /api/key-status?key=Status, usage and limits of one key.
Authentication headers
x-api-key: YOUR_API_KEY

# or
Authorization: Bearer YOUR_API_KEY
Example request
curl https://api.project8.app/v1/messages \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model":"claude-sonnet-4-6",
       "max_tokens":1024,
       "messages":[{"role":"user","content":"Hello"}]}'

04

Compatible model IDs

Pass an ID in the model field. In Claude Code, adding [1m] to an ID with a 1M context tells Claude Code to size its context budget to match; the gateway removes the suffix.
Compatible model IDs and their context windows
Compatible model IDContext
claude-fable-5-21M
claude-fable-5-11M
claude-fable-51M
claude-opus-5-51M
claude-opus-51M
claude-sonnet-5-51M
claude-sonnet-51M
claude-haiku-5-5200K
claude-opus-4-81M
claude-opus-4-71M
claude-opus-4-61M
claude-sonnet-4-61M
claude-opus-4-5200K
claude-sonnet-4-5-20250929200K
claude-haiku-4-5-20251001200K
claude-opus-4-1-20250805200K
claude-opus-4-20250514200K
claude-sonnet-4-20250514200K

These are IDs your client can send. The gateway routes each one to a compatible third-party model; an ID does not mean the request is served by Anthropic’s model of that name.

05

Limits

Limits
Token budgetPer key, per 5-hour window. The window starts with your first request.
What countsNon-cached input and output tokens; prompt cache reads are not counted. Some model IDs count at a higher rate.
Rate limitRequests per minute, set by your plan.
DevicesOne person per key, up to 5 devices at once unless your key shows another limit.
UsageCheck the key status page or your console.

06

Troubleshooting

Connection errors

Check that the base URL is https://api.project8.app (OpenAI-format clients add /v1) and that your key is active on the key status page.

Unauthorized

Send the whole key, starting with p8-, in the x-api-key header or as a Bearer token. A regenerated key replaces the old one.

Model not found

Send an ID exactly as GET /v1/models lists it.

Requests refused for limits

Your 5-hour budget or your per-minute rate may be used up. The key status page shows when the window resets.

Changes do not apply

Fully restart your editor or terminal after changing its configuration.

Web search or image input does not work

These are available only where your plan and server provide them.

Still stuck

Email [email protected] with the time of the failed request and the error text. Never send your full key.