AI agents
Connect Anthropic without an API key
Yomenie signs a short identity token for each agent, and Anthropic trades it for a short-lived access token. No Anthropic API key is stored anywhere.
Updated
On this page
Your AI teammates can call Claude through Yomenie without an Anthropic API key. Yomenie is an identity provider your Anthropic organization trusts: for each call it signs a short identity token naming the agent (or the person), and Anthropic trades it for an access token that lasts up to an hour. Nothing long-lived is stored, so there is no key to leak or rotate. To disconnect, delete the rule in Claude Console.
It uses Anthropic’s Workload Identity Federation. Your workspace’s team vault signs the tokens; the signing key never leaves it.
What you need
- An owner or admin of your Yomenie workspace, with the team vault set up.
- Someone who can create service accounts and workload identity in your Anthropic organization’s Claude Console.
Where it lives
In Yomenie, open the Vault’s ⋯ › Providers and press Connect a provider, then pick Anthropic: it connects without a key, and the card shows only Anthropic’s steps. Until it’s connected, Anthropic shows in the Providers list as Not connected, and its Connect opens the same card. Google Vertex AI and any OAuth 2.0 token exchange can trust Yomenie too (Vertex AI and others, no key); AWS comes later. Owners, admins and members who can manage AI providers connect. (Providers call this workload identity federation, OIDC.)
1. Register Yomenie in Claude Console
In Claude Console, open Settings › Workload identity, choose Connect workload, then Custom OIDC. Yomenie’s Connect page shows these values for your workspace, each with a copy button. For a workspace called acme:
Issuer
| Field | Value |
|---|---|
| Name | yomenie-acme |
| Issuer URL | https://yomenie.us/oidc/acme |
| JWKS source | OIDC discovery (leave the discovery base empty) |
| Single-use tokens | On |
| Maximum token lifetime | 1 hour |
Service account: create one, for example yomenie-acme, in the Anthropic workspace whose usage and limits should apply.
Rule
| Field | Value |
|---|---|
| Subject | workspace:acme:* |
| Audience | https://api.anthropic.com |
| Scope | workspace:inference |
| Token lifetime | 3600 seconds |
| Target | the service account above |
Note the rule’s id (fdrl_…), the service account’s id (svac_…), your organization id (on the Organization page) and, if the rule covers more than one Anthropic workspace, the workspace id (wrkspc_…).
2. Check the connection in Yomenie
Back on the Connect page, paste the organization id and the rule id, and the service account and workspace ids if you have them, then press Check connection. There is no key to enter.
Yomenie signs a token, trades it at Anthropic and reads Anthropic’s models. If Anthropic says no, nothing is saved and the message says what to check. Anthropic gives the exact reason in Claude Console’s Authentication history.
Once it works, Anthropic’s row in Providers reads Without a key, and its page’s Change opens Keyless access, which shows the issuer, the signing key (it rotates every day on its own), every token issued and the providers that trust it. Members see the providers and their own subject.
Your AI tool can do the same: “connect Anthropic without an API key” (add_api_provider with preset: "anthropic"), and get_keyless_access gives it the issuer URL, the subject and the tokens issued.
3. Call Claude
Agents call models as anthropic/<model> through the usual address, with their Yomenie credential:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://yomenie.us/api/v1/proxy/model",
apiKey: process.env.YOMENIE_AGENT_KEY, // ym_ak_…, a cloud run's token, or a proxy pass
});
const reply = await client.chat.completions.create({
model: "anthropic/claude-opus-5-5",
messages: [{ role: "user", content: "Hello" }],
});
Set anthropic/… as an agent’s model, or the workspace’s default, and cloud runs use it too.
Claude Code and Anthropic’s SDKs use Anthropic’s own API through Yomenie the same way: ANTHROPIC_BASE_URL=https://yomenie.us/api/v1/proxy/anthropic, ANTHROPIC_AUTH_TOKEN=ym_px_… (a proxy pass) and claude --model anthropic/claude-opus-5-5.
Who Anthropic sees
Every token names who the call is for, so Anthropic’s usage and your rules can tell them apart:
| Caller | Subject |
|---|---|
| An AI teammate (its key, a cloud run, or a person holding it) | workspace:acme:agent:<agent id> |
| A person’s own AI tool (a person pass) | workspace:acme:person:<person id> |
| An app using a project’s Keyless access item (Projects in the Vault) | workspace:acme:project:<project id>:person:<person id> |
To let only agents in, use workspace:acme:agent:* as the rule’s subject. For one agent, use its full subject. A rule narrowed like that refuses project calls; workspace:acme:* accepts every kind. To bill one project to its own Anthropic workspace, add a rule with subject workspace:acme:project:<project id>:* and that workspace’s service account, and put its ids on the project’s Keyless access item.
What’s checked, and what’s recorded
Everything else is as for any provider (Call models and other APIs through Yomenie): the agent isn’t paused, no deny rule matches, rate and token limits hold, and each call is in the audit log and the agent’s calls list. Each token trade is in the audit log too (proxy.token_minted), with who it was for, never the token. The vault records every token it signs.
Yomenie keeps Anthropic’s access token in memory only, reuses it until two minutes before it expires, and asks for a new one after that. Pausing an agent or removing its access still stops its calls within a minute.
Turn it off
Delete the rule (or the issuer) in Claude Console: the next trade fails and calls stop. Remove the provider in Vault › Providers to stop Yomenie asking.