Hacker News new | ask | show | jobs
by clampd 88 days ago
Thanks! Yes - since OpenRouter exposes an OpenAI-compatible API, the SDK already works with it today:

  client = clampd.openai(OpenAI(base_url="https://openrouter.ai/api/v1", api_key="..."), agent_id="my-agent")
Any OpenAI-compatible provider works - OpenRouter, Azure OpenAI, Groq, Together, etc. Clampd intercepts tool calls after the LLM responds, so it doesn't matter which provider you use.