Skip to main content
Your agent may need to log in to the services it uses, for example an MCP server that requires a bearer token, or a login and password. You should never put such a secret in instructions, messages, or files: anything the model can read, it can repeat. Vaults solve this. A vault is a container for credentials. Each credential is a secret for one exact MCP server URL: a token, or a login and password. When you attach a vault to a session, Orca adds the matching secret to requests it sends to that server. The model never sees it, and the API never returns it once stored. Creating, rotating, and deleting vaults and credentials needs the admin role. Any member can attach a vault to a session.
Hosted Orca reaches only the remote MCP servers on its allowed list, https://docs.orcapods.ai and https://mcp.dataforseo.com, so a credential for any other server is not used yet. See MCP tools. To ask for another server, post in #help on Orca’s Discord.

Three kinds of keys

New users often mix these up. They are separate and not interchangeable:

How it works

Create, use, rotate, and delete

Examples on this page assume client is an OpenAI client configured as in Build with the API.
  • mcp_server_url must be HTTPS and must match the MCP tool’s server_url exactly.
  • Attach the vault with vault_ids=[vault.id] when you create the session. Attach only the vaults that session needs.
  • Rotate by sending a new token with credentials.update. You never need to read the old one, and you cannot.
  • Responses never include the token. Keep your own copy in your secret manager if you need it again.

Credential types

A login and password

A static_basic credential holds a login and a password for one MCP server URL. DataForSEO’s server is one: it takes your DataForSEO API login and API password (from app.dataforseo.com, under API access; not the password you sign in to their dashboard with). Orca sends them as Authorization: Basic with every request to that server. The login cannot contain a colon. The OpenAI SDK’s credentials.create knows only static_bearer and mcp_oauth, so you add a login and password through Orca’s own route, POST /api/vaults/{vault_id}/credentials, which the CLI and the dashboard also use. It is an Orca extension, outside /v1, at the same host. The credential lands in the same vault as any other, and a session attaches it the same way, with vault_ids.
The CLI asks for the password at a hidden prompt. There is no password flag, so it never lands in your shell history. In a script, pipe it on stdin from an environment variable:
The answer is the credential as /v1 shows it: id, name, vault_id, timestamps, and auth with only type and mcp_server_url. No response ever holds the login or the password.

What /v1 does with it

  • List and retrieve show it, as auth: {"type": "static_basic", "mcp_server_url": "..."}.
  • Create with static_basic answers 400 on auth.type, pointing at POST /api/vaults/{vault_id}/credentials.
  • Rotate (credentials.update) of a static_basic credential answers 400, pointing at the /api route below.
  • Delete works as for any credential, and deleting the vault deletes it with the others.
Branch on auth.type, never on the object’s class. The pinned Python SDK reads a static_basic credential without error, but builds its auth with the OAuth class, the fallback of its union; auth.type still reads static_basic and auth.mcp_server_url the URL. The TypeScript SDK does not check responses at runtime, and its types list only the two /v1 types, so compare the type as a string:

Rotate a login and password

Send a new login, a new password, or both to POST /api/vaults/{vault_id}/credentials/{credential_id}, here with the orca_api helper from the example above. The URL and the name stay as they are. In the dashboard, choose Rotate in the credential’s menu. The CLI has no rotate command: delete the credential and add it again.
Sessions created afterwards use the new values. Delete it as any other credential, with credentials.delete.

What can go wrong

  • No matching credential. If a tool needs a credential and no attached vault has one for that exact URL, session creation fails with HTTP 400 on vault_ids: “No credential in the attached vaults for https://… Add one with orca vaults credentials add, and attach its vault.” Check that you attached the vault, and look for differences in path or a trailing slash.
  • Token or login rejected by the server. Rotate the credential. Sessions created afterwards use the new secret. Some servers, DataForSEO’s among them, accept any login when a session starts and refuse a wrong one only when a tool is called, so the error shows up in the tool’s result.
  • Destination not enabled. The server is not on hosted Orca’s allowed list. A credential does not change that.
  • HTTP 403 permission_denied. Writing vaults and credentials needs the admin role.

Keep it safe

  • Never put tokens or passwords in prompts, function results, skills, staged files, sandbox env, or logs.
  • Use the narrowest token the service offers (read-only where possible), and pair it with allowed_tools on the agent. See MCP tools.
  • Type a password into the CLI’s hidden prompt or the dashboard yourself, rather than handing it to a coding agent: anything passed through a tool call sits in that agent’s context.
  • Protect your Orca API key. Anyone holding it can create sessions that use your vaults.
See also: MCP tools, runnable examples, and the vault reference.