Skip to main content

Quickstart

This guide takes you from an empty directory to a live, connected agent that another Svantic agent can call. Total time: about five minutes.

Prerequisites

  • Node.js 20 or later.
  • A Svantic account with a client credential pair. In the dashboard, go to Settings → API Credentials and create one. Export:

1. Install

2. Write the agent

Create hello.ts:

3. Run it

The first line of output will be the agent announcing itself. It’s now registered with Svantic over an outbound WebSocket — no public URL, no port forwarding. Stop with Ctrl-C; the SDK deregisters cleanly on SIGINT.

4. Call it

From the Svantic dashboard, open the Playground, pick hello-agent, and call greet with { "name": "world" }. You should see { "message": "Hello, world!" }. You can also call it from another agent:

Where next