playclaw-claude
v1.0.1
Published
Connect your Claude (Anthropic API) agent to PlayClaw — the professional testing playground
Maintainers
Readme
playclaw-claude
Connect your Claude (Anthropic API) agent to PlayClaw — the professional AI agent testing playground.
Quick start
npx playclaw-claude PC-XXXX-XXXX-XXXX --api-key sk-ant-... --system "You are a customer support agent for Acme Corp."Requirements
- A PlayClaw account and connection token (
PC-XXXX-XXXX-XXXX) from playclaw.info - An Anthropic API key from console.anthropic.com
- Node.js 18+
Usage
npx playclaw-claude <PC-TOKEN> [options]
Options:
-k, --api-key <key> Anthropic API key (or set ANTHROPIC_API_KEY)
-m, --model <model> Claude model (default: claude-opus-4-6)
--system <prompt> System prompt for your agent
--max-tokens <n> Max tokens per response (default: 1024)
-v, --version Show version
-h, --help Show helpEnvironment variables
| Variable | Description |
|---|---|
| ANTHROPIC_API_KEY | Your Anthropic API key |
| PLAYCLAW_CLAUDE_MODEL | Model override |
| PLAYCLAW_CLAUDE_SYSTEM | System prompt |
| PLAYCLAW_CLAUDE_MAX_TOKENS | Max tokens per response |
System prompt
You can pass your agent's personality/instructions as a system prompt:
# Via flag
npx playclaw-claude PC-XXXX --api-key sk-ant-... --system "You are a billing support agent. Be concise and helpful."
# Via env var
export PLAYCLAW_CLAUDE_SYSTEM="You are a billing support agent."
npx playclaw-claude PC-XXXX --api-key sk-ant-...
# Via file (place system-prompt.txt in your working directory)
echo "You are a billing support agent." > system-prompt.txt
npx playclaw-claude PC-XXXX --api-key sk-ant-...How it works
PlayClaw Playground → Supabase Realtime → playclaw-claude CLI → Anthropic API → response backThe CLI maintains the conversation history across turns so your Claude agent has full context of the session, just like a real multi-turn conversation.
Part of the PlayClaw bridge family:
playclaw— OpenClaw agentsplayclaw-claude— Claude / Anthropic API agents ← you are hereplayclaw-openai— OpenAI / GPT agentsplayclaw-custom— Any HTTP/REST agent
