Skip to content
MaskioEU

OpenAI-compatible proxy

The route is:

POST https://api.maskio.io/v1/proxy/chat/completions
Authorization: Bearer mp_live_...

The key needs proxy:llm. Store the provider credential in the workspace. Maskio decrypts it for the outbound call and does not put it in the prompt.

Send the workspace and session on the request so the dictionary matches the rest of the agent run:

X-Muteproxy-Workspace: your-workspace-id
X-Muteproxy-Session: your-session-id

The body is a chat completion with a messages array. Maskio tokenizes message content, calls the provider, and restores tokens in the completion before it returns.

This is not base_url = https://api.maskio.io/v1 with no other changes. The path is /v1/proxy/chat/completions, and the two headers are required. LangChain and CrewAI should set that endpoint and keep one session id for the whole run.

If the LLM client is not configured on the cluster, the route returns 503.