Agent credentials

Connect an MCP client that cannot sign in, using an organization agent and a secret you create in the developer portal.

An agent credential is a secret that an MCP client sends as a header on every request. It belongs to an organization agent: an agent your organization owns, which acts as one of the organization's roles rather than as a person. Use one when a client cannot sign in:

  • the client only supports dynamic client registration, which onefold does not offer, as Cursor does;
  • the client runs where nobody can open a browser, such as a scheduled job;
  • the work belongs to the organization rather than to one member, so it should keep running when that member leaves.

If your client supports sign-in and the work is yours, prefer signing in. Signing in puts no secret in a file, and the consent screen shows exactly what you are granting. See the quickstart.

How it differs from signing in

Sign inAgent credential
Acts asyou, with the permissions you holdone of the organization's roles
Secret on your machinea token the client stores and refreshesa credential you paste
Lifetime15 minutes, refreshed by the clientthe expiry you choose, within the organization's lifetime cap
Approved bythe consent screencreating it
Shown in the portal asConnected by sign-inOrganization agent

Both are listed on the Agents tab of every application they reach, organization agents first and then the connections members made.

Create one

Open the Agents tab

Where you create the agent decides what it reaches:

Created onReaches
An application's Agents tabthat application alone
An organization's Agents tabevery application the organization owns, including ones added later, or the applications you choose

Choose Create agent and give it a name you will recognise later, such as the job or the machine that will hold it.

Choose the role it acts as

Under Acts as, pick one of the organization's roles. The agent can do what that role allows on each application it reaches, and no more. A role you may not assign is shown disabled, with the reason. See Organization agents.

Choose what it may do

Choose Read, Write, or both. Until you choose one, the agent can do nothing. An agent with Read alone can inspect your setup and cannot change anything. With Write, More powers offers Manage API keys, which lets it create, rotate and revoke API keys, and Read and write user metadata. See Scopes and permissions.

Choose when it expires

Choose Never, 30 days, 90 days or 1 year. When the organization or the application caps how long a credential may live, the cap is preselected and every longer choice is shown disabled, with the reason.

Accept responsibility

Creating an agent asks you to confirm that you are responsible for it: you keep its credentials safe, limit who receives them and revoke them when they are no longer needed. Every call it makes is recorded.

Copy the credential

It starts with eitozx_dev_ and is shown once. onefold stores only a hash of it, so it cannot be shown again. If you lose it, revoke it and create another.

Give it to the client

Send it as a bearer token:

Authorization: Bearer eitozx_dev_YOUR_CREDENTIAL

Each client has its own place for that header. See the guide for Claude Code, Codex, Cursor or VS Code.

Check that it works

curl -s -X POST https://onefold.eitozx.com/api/mcp \
  -H "Authorization: Bearer eitozx_dev_YOUR_CREDENTIAL" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

A 401 means the credential is wrong, expired or revoked. See 401 from the server.

Organization agents

An organization agent acts as its role, and is limited to that role's permissions on each application it reaches. Narrowing the role narrows the agent from its next call. It does not depend on the person who made it: it keeps working when they leave the organization, lose a role or reset their password, and when ownership changes.

It is offered only the tools that run without an acting person. It does not manage members, roles, organization invitations or other agents, does not invite a person to an application, and does not create organizations. When its role holds Create applications, it can create applications in the organization.

To create one you need the Manage agents and their credentials permission, a role that ranks above the one the agent will act as, and every permission that role carries. Held for one application, the permission reaches only the agents bound to that application alone; an agent that reaches the whole organization needs it at organization level. View agents lists them. A role that a live agent acts as cannot be deleted: revoke the agent, or give it another role, first.

More than one credential

One agent can hold several credentials, for example one per machine. On the agent's card, choose Add credential. Each has its own expiry, and is listed with its name, the first characters of the secret, what it may do and when it was last used. Edit access changes what one credential may do.

An organization can hold ten live credentials at a time, across all its agents. An expired or revoked credential does not count.

Revoke

  • Revoke credential stops that one secret, with any API key it created. The agent's other credentials keep working.
  • Revoke agent stops the agent, every credential it holds and every API key they created.

Both take effect on the next request. There is no rotation: to replace a credential, add a new one and revoke the old one.

A credential also ends when:

  • an application it names is deleted. A credential chosen for that application is revoked, even when it reaches other applications too. One that reaches every application of the organization loses the deleted one and keeps working;
  • the organization is deleted. Its agents are revoked with their credentials;
  • onefold suspends the organization. Its agents' credentials end and stay ended after the organization is restored. The agents and their roles are kept, so add a new credential to each one you still use;
  • a lifetime cap is saved that is shorter than the credential's age. See Credential lifetime.

Treat an agent credential like a password

It can do whatever its role allows on every application it reaches. Keep it out of source control and out of shared configuration. Revoke it in the portal if you think it has leaked. See Security.

On this page