Docs · LLMs and developers
Version3.14.0Agents give an AI workflow its own memory, separate from any one person or chat: durable agents for recurring work, ephemeral agents for one-off runs.
Agents
Agents are memory identities for AI workflows.
Use them when a workflow needs its own memory boundary instead of relying on a person, one chat, or the whole organization.
Every member of an organization can open Memory > Agents (/memory/agents) and create an agent. Owners and admins approve activation, because an active agent is billed.
Agent modes
| Mode | Use it for | Memory behavior | Price |
|---|---|---|---|
| Durable | Recurring responsibilities and automations | Memory carries across future runs | $10 per agent per month |
| Ephemeral | One-time executions, tests, previews, and temporary workflows | Memory stays after the run; erase it when you delete the agent | $10 one time |
The Durable memory identity checkbox on the create form picks the mode. Uncheck it for an ephemeral agent.
When to use an agent
Agents are useful when you want a workflow to keep its own context, such as:
- release-readiness tracking;
- customer-specific implementation work;
- support triage for one account; or
- a developer workflow with its own history and constraints.
Who can do what
Organizations have three roles: Owner, Admin and Member.
| Action | Member | Owner or Admin |
|---|---|---|
| Open Memory > Agents | Yes | Yes |
| See agents | Only agents they created | Every agent |
| Create a draft agent | Yes | Yes |
| Edit, test, create tokens, pause, resume, turn off, delete | Their own agents | Every agent |
| Activate a draft | Submit it for approval | Activate it directly |
| Approve or reject a submitted draft | No | Yes |
| Allow organization methodology memory | No | Yes |
| Read the agent's memory | Their own agents | Every agent |
A member cannot set either of the agent's reach flags, memory.includeOrganizationMethodology or memory.includeCrossClientPatterns, to true, on create or on edit. The API answers 403 with code REACH_ADMIN_ONLY. On the create form only owners and admins see the Allow organization methodology memory checkbox.
While a member's activation request is open, the member cannot edit that agent. The API answers 409 with code ACTIVATION_PENDING and the error "Withdraw the activation request to edit this agent". Withdraw the request, edit, then submit again.
An agent another member created does not appear in a member's list, and the API answers 404 Agent not found for it rather than 403.
Agent lifecycle
An agent's status is one of draft, active, paused, closing, closed or deleted. closing is reserved and not currently used. Approval is not a separate status: a draft waiting for approval is a draft with an open activation request.
| Status | What it means | What moves it on |
|---|---|---|
draft | Created, not billed, and refused by the runtime | Activate (owner or admin), Submit for approval (member), or Delete |
draft, waiting for approval | The member submitted it. Owners and admins get a notification | Approve, Reject with a reason, or Withdraw |
active | Billing has started and the runtime accepts calls | Pause or Turn off |
paused | The runtime refuses calls. The agent is still billed | Resume or Turn off |
closed | Turned off. Billing has ended | Delete |
deleted | Removed from the list | None |
How activation works:
- Anyone creates a draft with Create draft agent.
- An owner or admin activates the draft with Activate (Start execution for an ephemeral agent). This starts billing.
- A member instead clicks Submit for approval. The card shows Waiting for approval, and the member can Withdraw the request.
- An owner or admin clicks Approve, which activates the draft and starts billing, or Reject, which requires a reason. If an owner or admin activates a draft with an open request through the API, the request is recorded as approved.
- A rejected or withdrawn draft stays a
draft. After a rejection, the card shows Not approved: followed by the reason, and the member can submit again.
Pause asks you to confirm first. Turn off can't be undone: it ends billing, and a closed agent can only be deleted, so it asks you to type the agent's name.
Each approval, rejection and withdrawal is kept on the agent in activationDecisions, with who decided, when, and the reason.
Delete asks you to type the agent's name. Checking Also erase this agent/account memory also queues an erasure of the agent's memory. Without that box checked, memory is kept.
Memory boundaries
Agent retrieval is narrowed to the requesting organization, the token's environment, and the selected agent. An agent retrieves its own memories and its client or account's memories. When Allow organization methodology memory is on, it also retrieves memories the organization marked as methodology.
Each agent's detail panel has a Memory link to /memory?scope=agent:<agentId>, which lists that agent's memories. The Team scope on /memory leaves agent memories out, so a member never reads another member's agent through Team.
Environments
Each agent belongs to one environment, Test or Production, chosen when it is created; it cannot move. Memory > Agents shows the agents of the environment currently selected. Agent slugs are unique within an environment. See Environments.
Runtime model
Agents use the same request shape as OpenAI chat completions, through the inference gateway. Requests run on Achiral-hosted models unless the agent forwards to its own OpenAI-compatible upstream.
You identify the agent either by route or by the X-Achiral-Agent header. The token must be bound to the agent; create one with Token on the agent's card.
curl https://your-org-slug.achiral.ai/v1/chat/completions \
-H "Authorization: Bearer acm_live_..." \
-H "Content-Type: application/json" \
-H "X-Achiral-Agent: release-readiness-agent" \
-d '{
"model": "chiro",
"messages": [
{
"role": "user",
"content": "Prepare the next rollout review with prior migration context."
}
],
"temperature": 0.2
}'For the route-based contract, see API reference.
Pricing notes
- Durable agents are $10 per agent per month.
- Ephemeral execution agents are $10 one time.
- Drafts are not billed. Billing starts at activation, continues while the agent is paused, and ends when it is turned off or deleted.
- In a Founder workspace, each person can keep one draft in each environment. Creating another answers
402with codememory_agents_add_on_required. - Activation requires a Team plan or Custom contract because Memory Agents are a paid add-on.