Skip to content
Docs · Models and APIs

AI agents

Call models and other APIs through Yomenie

Your AI teammates call models through Yomenie, which adds your workspace's key after checking what the agent may do, and records each call.

Updated

On this page

Your AI teammates never see your API keys. They call the API through Yomenie, which adds the key after checking what the agent may do, and records each call.

Get a proxy pass from your AI tool

Running models from your own machine (a local runner, a benchmark, a script)? Don’t put a provider key in a .env file. Ask your AI tool for a proxy pass: say “get me a proxy pass” (request_proxy_pass). It comes back with the two lines the process needs:

OPENAI_BASE_URL=https://yomenie.us/api/v1/proxy/model
OPENAI_API_KEY=ym_px_…   # the pass

Any OpenAI-compatible SDK reads those two. Name models provider/model, or leave model out for the default; the answer lists the models you can name. It also lists one base URL per provider (see One provider per address below), for when you want every call to go to one provider.

There are two kinds:

  • A person pass, from any session: the calls are yours. They’re in the audit log as yours, count toward your own daily limit (the workspace’s default, which owners and admins can change, or one set just for you; see Daily limits below) and the workspace’s month, and share one rate limit (60 at once, 5 a second, 10 open streams). Everyone in the workspace may get one.
  • An agent pass, from the session that runs an AI teammate (load_agent, then request_proxy_pass { agent: "Iris" }): the calls are Iris’s, under Iris’s access, limits and recording, and in Iris’s calls list. It ends the moment that hold ends: released, handed off or taken over.

A pass lasts an hour by default and up to four (ttlMinutes). You can have several at once (up to 10 per session, 20 in all), and a sub-agent can get its own; each call shows which session or sub-agent made it. A pass also ends when its session ends or when you sign that app out or disconnect it; the error then says to ask for a new one. A Yomenie update doesn’t end your pass, and calls keep going through it while the update rolls out. Yomenie keeps only a hash of it. Keep it in the process’s environment: never paste it into chat, a ticket or a file in your repository.

Seeing and ending your passes

Your passes are on Your AI work, under Proxy passes, each with when it ends and Revoke. From your AI tool: “list my proxy passes” (list_proxy_passes) and “end that pass” (end_proxy_pass { id }, or all: true for all of yours). An ended pass stops working within 10 seconds. An AI teammate, and the session running it, can end that teammate’s passes; its managers can end any of them; owners and admins can end any pass in the workspace. No passkey: ending a pass only takes access away.

“Show my proxy calls” (list_proxy_calls { mine: true }) lists the calls made on your person passes. Nobody else’s are shown to you.

Daily limits

Each person has a daily token limit for calls on person passes: the workspace’s default (2,000,000 to start) unless an owner or admin set one for them, on a model provider’s page in Vault → Providers, under Daily token limits. Each AI teammate has its own daily limit, shared by its cloud runs, agent passes and its key, set on its Access tab by its managers, owners and admins. The workspace’s monthly limit sits on top of both. At a limit, calls get 429 with when it resets and who can raise it. From your AI tool: get_proxy_limits and set_proxy_limit.

In the audit log

Every pass is traceable by its id (pxp_…): when it was issued, every call made with it, and how it ended: revoked (and by whom), its session or app ended, its person was signed out or left, its right was removed, its agent’s hold ended, or it ran out. Ends Yomenie finds by checking (running out, a hold ending) are logged within a minute.

On the floor

While a helper or an AI teammate calls a model through Yomenie, everyone on the floor sees it: three small violet dots blink over the helper’s head, or after the AI teammate’s name on its tag.

Two desks on the floor. Beside Priya's chair stands her helper Fizz, a small violet sprite, with three violet dots over its head. At the next desk, the name tag of Iris, an AI teammate, shows the same dots after her name.
Priya's helper Fizz and the AI teammate Iris, each calling a model.
  • After each call the dots stay lit for about 6 seconds, so a run of calls reads as one steady signal.
  • When it’s busy (20 or more calls in a minute) they blink twice as fast.
  • A refused call (a deny rule, a paused agent, a limit reached, a pass that ended) shows a small grey cross for a few seconds instead.
  • Hover the helper or the name tag to see which model: “Iris · calling glm-5.3”.
Priya's helper Fizz beside her chair with three violet dots over its head, a deeper violet than a single call's.
Busy: the dots blink twice as fast.
A small grey cross over Priya's helper Fizz, and another after Iris's name on her tag, in place of the violet dots.
A refused call: a grey cross for a few seconds.
A small dark label over Priya's helper Fizz, shown while the pointer rests on it, reads Fizz · calling glm-5.3.
Hover a helper or a name tag to see the model.

A person pass’s calls show over the helper or session that asked for it. A helper that’s waiting for you shows its waiting sign, not the dots. With reduced motion the dots hold still, and Map view doesn’t show them. Only the fact and the model are on the floor: counts, tokens and what was sent stay in the call log. If you’ve turned off “Show my agents on the floor”, your helpers show no dots.

Add a model provider

An owner or admin adds the workspace’s model providers in Vault → Providers (Connect a provider): Z.ai, OpenAI, DeepSeek, Groq, Together, Fireworks, Mistral, OpenRouter, Gemini (Google AI Studio) or Google Vertex AI (with your Google Cloud project ID, and a key or no key), or Custom for any OpenAI-compatible server. Paste the provider’s key there (it’s saved to the Vault as a Standard secret), or pick a Standard key already in the Vault. Sensitive and Critical keys open only on people’s devices, so the proxy can’t use them. Yomenie checks the key works, by reading the provider’s models, before it saves the provider; if the check fails, nothing is saved. Pick a default model for the workspace; an owner or admin can give any agent its own on the agent’s Access tab. Rotate key and Remove are on each provider’s row.

The key reads Managed by Z.ai (its provider) in the Vault, with the only host it’s fetched for, and links to the provider’s page. Its page shows how many times it was handed out today and the last calls it served. The mark follows Vault → Providers: there’s no switch for it in the Vault, and the Vault’s Managed by a provider filter lists these keys. Removing a marked key warns you first that the provider’s calls stop for every agent; to switch keys without a gap, use Rotate key on the provider’s page, which checks the new key first.

From your AI tool: “Add Z.ai with the key in the vault called Z.ai key, default GLM-5.3” (add_api_provider). In Yomenie it’s Vault → Providers; list_integrations and get_integration show each provider’s status, usage and failed calls.

There is no Yomenie key: the provider bills your workspace directly, and it’s a provider your workspace chose.

Each key goes to its provider’s address only. Saving a provider ties its key to the provider’s host (api.z.ai, say), and neither the vault nor the proxy will send it anywhere else. Moving a custom provider to another host ties the key to the new one; to use the same provider key at two different hosts, add it to the vault twice.

Point your SDK at Yomenie

Use the proxy’s address as the base URL and the agent’s Yomenie credential as the API key. Models are named provider/model:

import OpenAI from "openai";
const client = new OpenAI({
  baseURL: "https://yomenie.us/api/v1/proxy/model",
  apiKey: process.env.YOMENIE_AGENT_KEY, // ym_ak_…, or a cloud run's token
});
const reply = await client.chat.completions.create({
  model: "zai/glm-5.3",
  messages: [{ role: "user", content: "Hello" }],
});
from openai import OpenAI
client = OpenAI(base_url="https://yomenie.us/api/v1/proxy/model", api_key=os.environ["YOMENIE_AGENT_KEY"])

Streaming works as usual (stream: true). Leave model out to use the agent’s default.

One provider per address

Put the provider in the address and every call on it goes to that provider: model calls, the models list, file uploads, batches, everything. A base URL is then all an SDK or Claude Code needs, with no header to add:

https://yomenie.us/api/v1/proxy/model/p/zai             # OpenAI-compatible, Z.ai
https://yomenie.us/api/v1/proxy/anthropic/p/anthropic   # Claude's format, Anthropic
https://yomenie.us/api/v1/proxy/anthropic/p/zai         # Claude's format, Z.ai's GLM

The part after /p/ is the provider’s name in your workspace (the prefix of its model ids). On such an address you can name a model with or without that prefix (claude-sonnet-4-5 or anthropic/claude-sonnet-4-5). Another provider’s model is refused, with the address to use for it; nothing is sent. Each provider’s page in Vault → Providers shows its base URLs under Base URLs, with Copy, and so do request_proxy_pass and what_can_i_use.

The addresses without /p/ keep working: model calls go to the provider in the model’s name, and a call with no model goes to the only provider that speaks that format, or else to your default model’s provider.

Claude Code and Anthropic SDKs

Tools that speak Anthropic’s Messages API, Claude Code among them, use the proxy’s Anthropic route with the same pass or credential. It serves Anthropic (when your workspace connected it) and Z.ai’s models, named provider/model as above:

ANTHROPIC_BASE_URL=https://yomenie.us/api/v1/proxy/anthropic
ANTHROPIC_AUTH_TOKEN=ym_px_…   # the pass, an agent key or a run token
claude --model zai/glm-5.3

To keep Claude Code on one provider, file uploads included, use that provider’s address:

ANTHROPIC_BASE_URL=https://yomenie.us/api/v1/proxy/anthropic/p/anthropic
ANTHROPIC_AUTH_TOKEN=ym_px_…
claude --model claude-sonnet-4-5

An SDK’s ANTHROPIC_API_KEY works as well. A provider without an Anthropic endpoint answers with an error naming the providers that have one; call it through /v1/proxy/model instead. Limits, deny rules, the call log and the dots on the floor are the same as for the model API. PDFs and images you give Claude Code go through too (see Files, PDFs, images and the rest of the API below).

In Yomenie’s cloud, a run already has the proxy’s address and its run token; there’s nothing to set up.

Files, PDFs, images and the rest of the API

Everything under your provider’s address goes through Yomenie, not only chat: files, uploads, batches, vector stores, the Responses API and whatever the provider adds next. Any method, JSON, multipart uploads and binary downloads, with the provider’s own headers (anthropic-beta, OpenAI-Beta) passed on.

  • PDFs and images in a message. Claude Code and the Anthropic SDKs send a file inside the message itself, and every later turn sends it again. A message or chat call can be up to 32 MB, Anthropic’s own limit, so a long session with a few PDFs and screenshots keeps working. A bigger one gets 413 with the limit.
  • Uploads (Anthropic’s Files API at /v1/files, OpenAI’s /files) stream through, up to 100 MB a request. For bigger files use OpenAI’s Uploads API, which sends a file in parts of up to 64 MB. Downloads stream up to 500 MB.
  • Which provider. On a provider’s own address (/p/anthropic, see One provider per address) every call goes to that provider. On the shared address, a call that names no model (an upload, a vector store) goes to the only provider that speaks that format, or else to the provider of your default model; the header x-yomenie-connection: openai picks another.
  • What’s counted. Model calls (messages, chat completions) count tokens toward your limits as before. Every other call is in the call log with its path, status, size and time, without tokens.
  • Shared keys share files. Files, vector stores and batches live at the provider under the key. Everyone whose calls use the same provider key can list and read what others uploaded with it. Within one workspace that’s expected; for files that must stay apart, add a second provider with its own key.

Closed paths

A few admin paths stay closed, because they create keys, add people or change billing:

  • Anthropic: everything under /v1/organizations (users, invites, workspaces, members, API keys, usage and cost reports).
  • OpenAI and other OpenAI-compatible providers: everything under /organization (admin and project keys, projects, users, invites, audit logs, usage, costs) and /dashboard (billing).

A call to one gets 403 naming the path; nothing is sent. Use the provider’s own console for these.

Not through Yomenie

  • Realtime voice (OpenAI’s realtime API) uses a WebSocket, which the proxy doesn’t carry.
  • OpenAI’s Assistants API is gone: OpenAI shut it down on 26 August 2026. Its /assistants and /threads paths answer 404 from OpenAI itself, with or without Yomenie. Move to the Responses API, which goes through Yomenie like any other path.

What’s checked on every call

The agent isn’t paused, no deny rule matches, nobody else is running it (its own key waits while someone holds it), and the workspace has the provider. If something is missing, the error says what and who can fix it, and ends with a reference (Reference: px_…) you can look up.

What’s recorded

Each call goes in the audit log, the agent’s calls list (its Access tab, for its managers, owners and admins) and the provider’s page in Vault → Providers (Recent calls, owners and admins, Failed and refused by default): the agent, API, provider, path, status, size, time and tokens. Not what was sent or answered, unless someone who manages the agent turns on Record calls for debugging, which shows on the agent’s page (“Recording calls until 15:00”) and stops by itself after 24 hours. Only JSON and text bodies are recorded: a file upload or a binary download never is. Recorded bodies are sealed, and every read of them is in the audit log. Calls and recordings are kept until someone deletes them.

From your AI tool: list_proxy_calls (mine: true for your own person-pass calls), get_proxy_call (with the reference from an error), set_proxy_recording, list_agent_access.

Limits

Each agent may make 60 calls at once and 5 a second, with at most 10 open streams. A message or chat call can be up to 32 MB, an upload 100 MB. Past that you get 429 with Retry-After. A cloud run, an agent pass and the agent’s key stop at its daily token limit, and a person pass at its person’s (see Daily limits above).

During an update

Yomenie updates without stopping the proxy: a call that’s already running finishes, and new calls go to a second copy while the first restarts. A deploy doesn’t end your pass. If a call does arrive at the wrong moment, it gets 503 with Retry-After before anything reaches the provider, so it’s safe to send again; OpenAI and Anthropic SDKs retry it by themselves, and so do Yomenie’s cloud runs.

Your own server

Custom providers must be reachable on the public internet over https. Self-hosted Yomenie can allow private addresses (a vLLM or Ollama on your own network) with PROXY_ALLOW_PRIVATE_UPSTREAMS=1.