Hacker News new | ask | show | jobs
by rsafaya 86 days ago
Makes a lot of sense. Any plans to support openrouter? We use that extensively instead of connecting directly to the model providers.
1 comments

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.