Framework Integrations (SDK)
TapPass works with any framework that uses the OpenAI or Anthropic SDK.
OpenAI SDK
Section titled “OpenAI SDK”from openai import OpenAI
client = OpenAI(base_url="http://localhost:9620/v1", api_key="tp_...")response = client.chat.completions.create( model="gpt-4o-mini", messages=[{"role": "user", "content": "Hello"}],)LangChain
Section titled “LangChain”from tappass import Agentfrom langchain_openai import ChatOpenAI
agent = Agent("http://localhost:9620", "tp_...")llm = ChatOpenAI(base_url=agent.gateway_url, api_key=agent.api_key)CrewAI
Section titled “CrewAI”agent = Agent("http://localhost:9620", "tp_...")agent.configure_environment() # sets OPENAI_BASE_URL + OPENAI_API_KEY# CrewAI now routes through TapPassAnthropic / Claude
Section titled “Anthropic / Claude”export ANTHROPIC_BASE_URL=http://localhost:9620export ANTHROPIC_API_KEY=tp_...Zero-code
Section titled “Zero-code”export OPENAI_BASE_URL=http://localhost:9620/v1export OPENAI_API_KEY=tp_...# Cursor, Copilot, VS Code. all governedFor the full guide with examples, see Framework Integrations.