Claude Pokee

Pokee Isaac inside
Claude Code, three ways:
- In the
/model picker — claude-pokee launches normal Claude Code
with Pokee Isaac as an extra model next to Opus/Sonnet/Haiku. Switch
with /model pokee-isaac and back, mid-session.
- As a tool — a Claude Code plugin adds
/claude-pokee:isaac plus MCP
tools (ask, build, iterate, health); Claude stays the driver and
delegates one-shot generation to Isaac.
- As the whole model —
claude-pokee isaac runs Claude Code's entire
agent loop on pokee-isaac.
Stdlib Python only, no dependencies. This integration is maintained by
Pokee AI; Claude and Claude Code are products of Anthropic.
You need your own Pokee API key
(developer.pokee.ai → API Keys).
Project lineage. This standalone repository preserves the history of
beniceokay/pokee-test, which is
based on TheMarco/claude-pokee
by Marco van Hylckama Vlieg. The original work remains MIT-licensed and is
credited in LICENSE. The Pokee AI-maintained version includes:
- an offline test suite under
tests/ — stdlib only, no key, no network
- the
probe-context command, and the measured results
it produced: the window held intact to 11,151,574 server-counted tokens,
which contradicts the ~128k truncation this project previously reported
- a fix for
build/iterate silently writing a partial file when a long
reply came back as several fenced blocks
Install
pipx install git+https://github.com/pokee-ai/claude-pokee.git
# or: uv tool install git+https://github.com/pokee-ai/claude-pokee.git
Put your key where every mode can find it:
mkdir -p ~/.pokee && echo 'POKEE_API_KEY=pk-live-...' > ~/.pokee/.env
export POKEE_API_KEY=... or a .env in the directory you launch from
also work (that order wins).
1. Isaac in the /model picker
claude-pokee # interactive; pick "Pokee Isaac" in /model
claude-pokee -p "question" # anything that isn't a subcommand goes to claude
Claude Code speaks the Anthropic Messages API and allows one base URL per
session; Pokee speaks OpenAI chat/completions. So claude-pokee starts a
local router (127.0.0.1, default port 8787) and points Claude Code at it:
model in the request | Goes to |
|---|
claude-* (or missing) | api.anthropic.com, byte-for-byte — auth headers, query string, and SSE stream untouched |
| anything else | translated to Pokee's OpenAI-style API |
Both local servers (this router and claude-pokee chat) answer only
requests whose Host is loopback and whose Origin, if a browser sent
one, is the server itself. Anything else gets a 403 before any upstream
call. Loopback alone is not enough: a web page can POST to 127.0.0.1
without a preflight and spend your Pokee credits or write into builds/
even though it cannot read the reply, and DNS rebinding puts a foreign
name in Host.
The launcher sets no ANTHROPIC_AUTH_TOKEN/ANTHROPIC_API_KEY, so your
saved claude.ai login remains the active credential for Anthropic models —
routing and billing for those are unchanged. The picker entry comes from
ANTHROPIC_CUSTOM_MODEL_OPTION.
Know before switching (applies whenever the session is on pokee-isaac):