Skip to main content

Registering Agents

Registration tells Svantic what your agent can do. Once registered, the mesh can discover your capabilities and route work to your agent automatically.

Quick Start (SDK)

The fastest way to register is with @svantic/sdk. Three environment variables, five lines of code:
The SDK handles authentication, registration, and connectivity automatically. Your agent is now discoverable on the mesh.

What Happens During Registration

The SDK performs all of this automatically when you call mesh.connect().

Connectivity Modes

By default, your agent connects outbound via WebSocket — no public URL or ingress needed. This works behind firewalls, NATs, and corporate networks. If your agent already runs as a public HTTP service, opt into hosted mode by passing a public_url. See Agent Connectivity for the full trade-off.

Registration Policies

Svantic supports three registration policies, configurable in the dashboard under Settings → Agent Policy:

Agent Card

Every agent publishes an Agent Card — a JSON manifest at /.well-known/agent-card.json that describes its capabilities. The SDK generates this automatically from your define_capability calls.
Best practices:
  • Name: Use kebab-case, unique on the mesh (my-service, not MyService)
  • Description: Write it for the AI — explain what the service does and when to use it
  • Skills: One skill per atomic function. Don’t bundle multiple operations
  • Parameters: Use JSON Schema with descriptions on every property
  • Version: Use semver

Session Context

When a capability is invoked, your handler receives session context alongside the arguments:
Registration makes your agent available. Actual work happens inside sessions — Svantic pulls your agent in automatically when a session needs it.

Manual Registration (non-SDK)

If you’re not using the SDK (e.g. Python, Go), make two HTTP calls:

1. Authenticate

2. Register

Use the token from step 1. The body only needs your agent’s name and capabilities — the body field and most other fields are optional.
Add "public_url" and "deployment_mode": "hosted" only if your agent is publicly reachable.

Managing Agents

List Registered Agents

Deregister

Deregistration removes the instance from routing and cleans up any active session bindings.

Environment Variables