AchiralAchiral

Docs · LLMs and developers

Version3.14.0

Create an agent and call it through the inference runtime.

Agents quick start

This guide walks through one goal: create an agent for a recurring workflow, get it activated, then call it through the runtime.

1. Pick one recurring workflow

Start with a workflow that repeats often enough for memory to matter.

Good first agents usually have:

  • a clear name;
  • a clear responsibility;
  • a narrow boundary; and
  • an owner who can judge whether the memory stays useful.

Example:

text
release-readiness-agent

2. Create a draft in the app

Open Memory > Agents (/memory/agents) in the environment you want, Test or Production, then New agent (/memory/agents/new). Every member can open it. Fill in:

  • Durable memory identity: checked for a durable agent, unchecked for a one-time ephemeral execution;
  • Agent name: it becomes the agent's slug, for example release-readiness-agent;
  • Client or account scope: the boundary the agent remembers for;
  • External client ID and Initial project key, both optional; and
  • Runtime provider: Achiral internal for Achiral-hosted models, or OpenAI-compatible upstream with a base URL, model and API key.

Owners and admins also see Allow organization methodology memory, checked by default. Members cannot turn it on.

Click Create draft agent. The draft is not billed and cannot be called yet.

3. Activate it

Creating the draft returns you to Agents, where the draft's card shows:

  • Activate (Start execution for an ephemeral agent), if you are an owner or admin. Activating starts billing.
  • Submit for approval, if you are a member. Owners and admins are notified, and approve it or reject it with a reason. Until they decide you can Withdraw the request.

Test checks the runtime provider before you activate. Activation requires a Team plan or Custom contract. See Agents for every state.

4. Create an agent-bound token

Click Token on the agent's card. The token is shown once. It has the inference:chat scope and can call only this agent. Its prefix is acm_test_ in a Test environment and acm_live_ in Production.

Shell
export ACHIRAL_TOKEN="acm_live_..."
export ACHIRAL_AGENT="release-readiness-agent"

5. Call the runtime

Call the agent through the OpenAI-compatible chat endpoint. The agent must be active; a draft or paused agent is refused with 403 agent_not_active.

Shell
curl https://your-org-slug.achiral.ai/v1/chat/completions \
  -H "Authorization: Bearer $ACHIRAL_TOKEN" \
  -H "Content-Type: application/json" \
  -H "X-Achiral-Agent: $ACHIRAL_AGENT" \
  -d '{
    "model": "chiro",
    "messages": [
      {
        "role": "user",
        "content": "Summarize what I need for the next release-readiness review."
      }
    ],
    "temperature": 0.2,
    "max_tokens": 800
  }'

You can also use the route form, POST /v1/agents/<agent-slug>/chat/completions. See API reference.

6. Keep the scope narrow

Before you rely on the agent in production, confirm that:

  • the right agent identity is present on every request;
  • project or workflow scope is added when needed; and
  • the agent is not being used across unrelated customers or responsibilities.

7. Review the result

Run the workflow a few times, then open the agent's Memory link (/memory?scope=agent:<agentId>) to see what it kept. If the recalled context is not helping, narrow the boundary or split the workflow into more agents.

Continue from here