OpenAI Compatibility
Use Swytcho as a drop-in replacement for the OpenAI SDK by changing one line of configuration.
Webhooks
Receive real-time event notifications from Swytcho — including completions, failures, and usage alerts.
LangChain
Connect Swytcho to LangChain chains, agents, and memory modules using the familiar
ChatOpenAI interface.LlamaIndex
Use Swytcho as the LLM backend for LlamaIndex queries, indexes, and retrieval-augmented generation pipelines.
LangChain
LangChain’sChatOpenAI class accepts a base_url parameter, so you can route all LangChain calls through Swytcho without changing any other part of your chain.
Python
pip install langchain-openai if you haven’t already.
LlamaIndex
LlamaIndex uses OpenAI-compatible LLMs through itsOpenAI class. Point it at Swytcho’s base URL to use any Swytcho model inside your LlamaIndex pipelines.
Python