Skip to content

Install the blackthorn CLI, log in with your API key, and chat, or point an OpenAI or Anthropic SDK at it.

Requests are encrypted on your machine before they leave it and decrypted only inside the GPU. The blackthorn CLI does the encryption: it chats in your terminal, or serves an API on localhost that OpenAI and Anthropic SDKs, Claude Code and Codex can use.

  1. Install the CLI

    v=$(curl -fsS https://bin.arcium.com/download/blackthorn/latest)
    curl -fsSLo blackthorn "https://bin.arcium.com/download/blackthorn/blackthorn_$(uname -m | sed s/arm64/aarch64/)_$(uname -s | tr A-Z a-z | sed s/darwin/macos/)_$v"
    chmod +x blackthorn && sudo mv blackthorn /usr/local/bin/
    blackthorn --version
  2. Log in

    blackthorn login

    Paste your API key when asked. It is not echoed. To check everything is in place, run blackthorn status. It confirms the host accepts your key, names the model, and checks the attestation: every MPC party vouches for the GPU serving you, the GPU’s own evidence holds up to NVIDIA’s root, and your session’s keys are bound to the model. blackthorn verify makes the same checks without a key. See Attestation.

  3. Chat

    blackthorn chat "What is the capital of France?"

    Run blackthorn chat with no prompt for a conversation. /continue extends an answer that hit its length limit, and /new starts over.

  4. Use it from code

    blackthorn serve
    # -> OpenAI's API on http://127.0.0.1:8000/v1, Anthropic's on http://127.0.0.1:8000

    Keep it running and send requests to it. Any API key works there: serve authenticates with your blackthorn login.

    curl http://127.0.0.1:8000/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
    "model": "qwen3.8-27b-bllm",
    "messages": [{"role": "user", "content": "What is the capital of France?"}],
    "max_tokens": 256
    }'

To run Claude Code or Codex on the engine, start blackthorn serve and run blackthorn claude or blackthorn codex. See Coding agents.

Differences from OpenAI’s and Anthropic’s APIs

Section titled “Differences from OpenAI’s and Anthropic’s APIs”
  • The context is 262,144 tokens (256k), prompt and answer together, with blackthorn 0.5.0 or newer; older versions get 32,768. A longer prompt is refused with prompt is too long. A long prompt the engine has not read before takes a while, since the engine reads all of it before it answers.
  • System messages, tools and tool calls work. With blackthorn 0.6.0 or newer, so do tool_choice (a required call or a named tool) and turning parallel calls off, and serve runs Anthropic’s web fetch and tool search tools itself. Other tools that OpenAI or Anthropic run on their own servers, such as web search, are left out. See Other agents.
  • No images. OpenAI’s Chat Completions API refuses them; Anthropic’s API and OpenAI’s Responses API replace each with a note that it was left out.
  • OpenAI’s Responses API (/v1/responses) stores nothing: send the whole conversation in input every time. previous_response_id is refused.
  • An omitted temperature takes the model’s default, listed in Models and GPUs. temperature and top_p work as usual. top_k and stop strings (stop, stop_sequences) work in Chat Completions and Anthropic’s API, and Chat Completions also takes seed and repetition_penalty.
  • frequency_penalty, presence_penalty, logprobs and n > 1 are not supported.
  • Requests must come from your own machine: Host localhost or 127.0.0.1, no Origin of another site, and Content-Type: application/json. A web page can’t use the API through your browser.
  • Coding agents: run Claude Code or Codex on the engine with blackthorn claude or blackthorn codex.
  • Usage and errors: how token usage, stop reasons and errors are reported.
  • How it works: why the host can’t read your prompts.