Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Agents and agent trees

Agent identity, keys and passports, parent and child agents, and funding access.

An agent in ndStill is an identity, not an account. It has a name, a purpose, a status, keys, a policy and access to funding sources. It never holds money and never sees a raw card number or a provider's master key. Agents can be arranged in trees: a parent agent that hands work to child agents, with budgets and freezes that apply to the whole tree.

What an agent is#

Agent fields
FieldMeaning
name, purposeWho it is and what it's for. The purpose shows on approvals and in evidence.
statusactive, frozen or retired. Retired agents can't pay or be revived.
actor_kindunattended (runs on its own), human_tool (a person's assistant) or shared.
parent_agent_id, tree_root_id, depthWhere it sits in a tree.
teamThe team it belongs to, for budgets, policy and showback.
default_funding_source_idWhat it pays from unless a payment says otherwise.
passport_kidThe key ID sellers verify its requests against.
policy_idIts own policy, layered under team, tree and org policies.

Create agents with POST/agents, or let a person create one through an MCP client's OAuth consent screen, where they pick the agent's allowance. Agents can never change their own policy, mandates, limits or freeze state, whatever their key's scopes.

Agent trees#

Many agent systems are hierarchies: an orchestrator plans, and specialists act. ndStill models that directly.

Text
Research orchestrator          tree budget $3,000 / month
 ├─ Literature scout           own budget $300 / month
 ├─ Data buyer                 own budget $1,500 / month
 │   └─ Dataset licensing      own budget $1,000 / month
 └─ Compute broker             own budget $1,200 / month
  • Budgets roll up. A payment by Dataset licensing must fit its own budget, Data buyer's, and the tree's. The children's budgets can add up to more than the tree's: the tree budget is the ceiling that binds first.
  • Policies tighten downwards. A tree policy applies to every agent in the tree. A child's own policy can only tighten it.
  • Freezes cascade. Freezing the orchestrator freezes the whole tree on every rail. Freezing a child leaves its siblings running.

See a tree with GET/agents/{id}/tree and every tree in the org with GET/agents/trees.

Funding access#

An agent may spend only from the funding sources it's allowed to use. Funding access is a list plus a default, with optional per-source limits:

JSON
{
  "sources": [
    { "funding_source_id": "fs_01JC…", "limits_override": { "per_payment": { "amount": 50000, "asset": "USD" } } },
    { "funding_source_id": "fs_01JD…" }
  ],
  "default_funding_source_id": "fs_01JC…"
}

Set it with PUT/agents/{id}/funding-access. The pipeline's funding stage resolves the source for each payment (explicit, then the agent's default, then the rail's default for the org) and declines with no_funding_access when the agent may not use it.

Keys, tokens and passports#

Agents authenticate to ndStill in one of three ways:

  1. An agent-scoped API key (nds_live_…), bound to one agent. The simplest option for agents you run yourself.
  2. An OAuth 2.1 token from an MCP client, granted on the consent screen with an allowance.
  3. A passport signature: requests signed with the agent's own Ed25519 key, under RFC 9421.

The passport is how sellers know which agent they're dealing with. Each agent has signing keys (custodied by you, or by ndStill's KMS), and the public half is published in a directory as a JWKS. Sellers verify request signatures against it, and the hosted Verify API adds the owner's verification level, active mandates and reputation. Rotate keys with POST/agents/{id}/keys/rotate; try signing in the request-signing tester.

Effective policy#

Because policies layer org → team → tree → agent, it isn't always obvious what applies. GET/agents/{id}/effective-policy returns every rule that applies to the agent with the policy it comes from, and the MCP get_policy tool returns the same to the agent itself, read-only.