Skip to Content
GuidesAdding a Provider

Adding a Provider

v1 status: stub. Step-by-step walkthrough TBD. In the meantime, see examples/custom_provider.rs in the rantaiclaw repo  and read Concepts → Channels & Providers.

The shape

  1. Implement Provider in src/providers/<your_provider>.rs
  2. Register the factory key in src/providers/mod.rs
  3. Add a config struct under src/config/schema.rs
  4. Add focused tests for factory wiring and error paths
  5. Document in Reference → Providers

Reference implementation

src/providers/openai.rs and src/providers/anthropic.rs are good starting points. Pick whichever protocol shape (OpenAI-compatible vs Anthropic Messages API) is closer to what you are integrating.

Last updated on