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:
What Happens During Registration
The SDK performs all of this automatically when you callmesh.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 apublic_url.
See Agent Connectivity for the full trade-off.
Registration Policies
Svantic supports three registration policies, configurable in the dashboard under Settings → Agent Policy:| Mode | Behavior |
|---|---|
| Open (default) | Any agent type can register |
| Allow-list | Only pre-approved agent types can register |
| Audit | All types register, but unknown types are flagged for review |
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.
- Name: Use kebab-case, unique on the mesh (
my-service, notMyService) - 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: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 — thebody field and most other fields are optional.
"public_url" and "deployment_mode": "hosted" only if your agent is publicly reachable.
Managing Agents
List Registered Agents
Deregister
Environment Variables
| Variable | Purpose | Required |
|---|---|---|
SVANTIC_CLIENT_ID | API client ID | Yes |
SVANTIC_CLIENT_SECRET | API client secret | Yes |
SVANTIC_INSTANCE_ID | Stable instance ID (for containers/k8s) | No (defaults to hostname-port) |
