BeefAPI

Client setup

Create an API key at /console/token and keep the sk-... value private. OpenAI-compatible tools use https://global.beefapi.com/v1. Anthropic-style tools use https://global.beefapi.com with no /v1 suffix.

OpenAI SDK

Prerequisite: the official OpenAI library, and a BeefAPI key from /console/token.

Python:

from openai import OpenAI

client = OpenAI(
    api_key="sk-...",
    base_url="https://global.beefapi.com/v1",
)

completion = client.chat.completions.create(
    model="gpt-5.6-sol",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)

JavaScript:

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'sk-...',
  baseURL: 'https://global.beefapi.com/v1',
});

const completion = await client.chat.completions.create({
  model: 'gpt-5.6-sol',
  messages: [{ role: 'user', content: 'Hello' }],
});
console.log(completion.choices[0].message.content);

Send a message. The request appears in /console/log.

Codex CLI

Prerequisite: Codex CLI installed, and a BeefAPI key from /console/token.

Put the model and Base URL in ~/.codex/config.toml (on Windows, %USERPROFILE%\.codex\config.toml):

model_provider = "beefapi"
model = "gpt-5.6-sol"

[model_providers.beefapi]
name = "OpenAI"
base_url = "https://global.beefapi.com/v1"
wire_api = "responses"
requires_openai_auth = true
supports_websockets = false

Set the key in the environment. Codex uses the name OPENAI_API_KEY:

export OPENAI_API_KEY="sk-..."

Send a message in Codex. The request appears in /console/log.

Claude Code

Prerequisite: Claude Code installed, and a BeefAPI key from /console/token.

Set these environment variables. Use ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. Do not append /v1 to the Base URL:

export ANTHROPIC_BASE_URL="https://global.beefapi.com"
export ANTHROPIC_AUTH_TOKEN="sk-..."

You can also set the same names under env in ~/.claude/settings.json (on Windows, %USERPROFILE%\.claude\settings.json).

Send a message in Claude Code. The request appears in /console/log.

Other OpenAI-compatible tools

Prerequisite: a BeefAPI key from /console/token, and a client that uses the OpenAI API.

You always need two values:

Field Value
Base URL https://global.beefapi.com/v1
API key the sk-... value from /console/token

Send a message. The request appears in /console/log.