Wild West API

Claude Agent SDK (Python) on Wild West API

The Python Claude Agent SDK also drives the Claude Code binary, so it reads the same Anthropic environment variables. Pass them through ClaudeAgentOptions, which merges on top of the inherited environment.

Base URL
https://wildwestapi.com
API key
Get one free, starts sk-ww-
Example model
outlaw-1-xploded

Pass env through ClaudeAgentOptions

Python
# pip install claude-agent-sdk
import os, anyio
from claude_agent_sdk import query, ClaudeAgentOptions

options = ClaudeAgentOptions(env={
    "ANTHROPIC_BASE_URL": "https://wildwestapi.com",
    "ANTHROPIC_AUTH_TOKEN": os.environ["WILDWEST_API_KEY"],
    "ANTHROPIC_MODEL": "outlaw-1-xploded",
})

async def main():
    async for message in query(prompt="List the files", options=options):
        print(message)

anyio.run(main)

The model must support tool calling for the agent to edit files or run commands. See the model list for which ones do.

Related guides

Uncensored AI models on one key

OpenAI and Anthropic compatible, pay as you go. New to it? Start with uncensored AI, explained.