Integrations¶
Privyx works with anything that lets you set the address of its AI provider. The client keeps its code and its key; it talks to Privyx, and Privyx talks to the provider.
Two base URLs cover most clients:
| The client speaks | Base URL | Start Privyx with |
|---|---|---|
| OpenAI format (Chat Completions, Responses) | http://localhost:8000/v1 |
privyx proxy --upstream https://api.openai.com |
| Anthropic format (Messages) | http://localhost:8000 |
privyx proxy --upstream https://api.anthropic.com |
Coding tools¶
| Tool | How | More |
|---|---|---|
| Claude Code | privyx run claude |
Coding agents |
| Codex | privyx run codex |
Coding agents |
| aider | privyx run aider |
Coding agents |
| pi | privyx run pi |
Coding agents |
| opencode | privyx run opencode (--provider openai for an OpenAI model) |
privyx run |
| Grok Build | privyx run grok |
privyx run |
| Gemini CLI | privyx run gemini (API key sign-in) |
Google Gemini |
| Ollama | privyx run ollama:llama3.2 |
Ollama and local servers |
| A tool or script on the OpenAI or Anthropic SDK | privyx run -p openai -- tool |
privyx run |
| Any tool with another base-URL variable | privyx run --env-var NAME -u URL -- tool |
privyx run |
| Cline | privyx proxy, then a custom base URL |
Cline |
| Roo Code | privyx proxy, then a custom base URL |
Roo Code |
| Continue | privyx proxy, then apiBase |
Continue |
| Cursor | Not on localhost: Cursor calls the URL from its servers |
Cursor |
SDKs and frameworks¶
| Client | Setting | Page |
|---|---|---|
| OpenAI SDK (Python, Node) | base_url / baseURL, or OPENAI_BASE_URL |
An app on the OpenAI or Anthropic SDK |
| Anthropic SDK (Python, Node) | base_url / baseURL, or ANTHROPIC_BASE_URL |
An app on the OpenAI or Anthropic SDK |
| LangChain | base_url on ChatOpenAI / ChatAnthropic |
LangChain |
| LlamaIndex | api_base on OpenAI, base_url on Anthropic |
LlamaIndex |
| LiteLLM | api_base |
LiteLLM |
| Vercel AI SDK | baseURL on createOpenAI / createAnthropic |
Vercel AI SDK |
curl and plain HTTP |
The URL | Examples |
Providers¶
| Provider | Mode | Needs | Page |
|---|---|---|---|
| OpenAI | transparent | nothing | OpenAI |
| Anthropic | transparent | nothing | Anthropic |
| Google Gemini | transparent or gateway | nothing for the native API | Google Gemini |
| Azure OpenAI | transparent | a route per path | Azure OpenAI |
| OpenRouter | transparent | a route | OpenRouter |
| DeepSeek | transparent, or gateway for Claude Code | a route for its Anthropic format | DeepSeek |
| Ollama and local servers | transparent | nothing | Ollama and local servers |
| Anything else compatible | either | see the page | Any other endpoint |
"A route" means a line in proxy.routes that tells Privyx to mask a path it
does not know by default. Without it, that path is forwarded unmasked; see
Routes.
What is covered everywhere¶
Whatever the client, Privyx masks routed chat requests in the OpenAI, Anthropic, Gemini, and Ollama formats and restores their replies, streamed or not, including tool-call arguments. Embeddings are masked too, and returned as is. It does not mask images or other API paths; see Limitations.
Check an integration¶
After the first request through a new client, look at the audit trail:
privyx audit tail --no-follow
A routed request that received upstream headers shows a proxy.request
line with its schema: openai, anthropic, responses, embeddings,
gemini, or ollama. schema=null means the path had no masking route and
was forwarded as sent. A missing line can also mean the request was blocked
or failed before upstream headers arrived; check proxy.blocked and
proxy.error before concluding the client bypassed Privyx.