🛰️ claude-tunnel

Your local Claude Code, reachable over HTTP.

Live tester — paste your API key (printed in the server logs) and send a prompt.

Endpoints

GET /health — liveness + claude version.
POST /v1/run — one JSON answer.
curl -s http://localhost:8787/v1/run \
  -H "authorization: Bearer $API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt":"write a haiku about tunnels"}'
POST /v1/stream — watch Claude Code work live (Server-Sent Events).
curl -N http://localhost:8787/v1/stream \
  -H "authorization: Bearer $API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt":"count to 3"}'
POST /v1/chat/completions — OpenAI-compatible. Point any OpenAI SDK at http://localhost:8787/v1 with your API key.