Connect a coding agent on your machine, such as Claude Code, as a worker that takes a project's runs and answers them. It asks Veryfront for work, so it needs no public address.
Before you start
You need a project with an agent. See Create an agent.
Connect a worker
- Install the SDK:
Shell
npm install veryfront - Save the worker. It registers itself with your API key, then sends a heartbeat so it stays online:
worker.mjs
import { createExternalAgentWorkerClient } from "veryfront/agent"; const client = createExternalAgentWorkerClient({ apiUrl: process.env.VERYFRONT_API_URL ?? "https://api.veryfront.com", authToken: process.env.VERYFRONT_API_KEY,});const worker = await client.registerWorker({ projectReference: process.env.PROJECT, implementationKind: "claude-code", implementationDisplayName: "Claude Code", workerKey: "laptop", displayName: "Laptop",});const beat = await client.heartbeatWorker(worker.id);console.log(`${beat.display_name}: ${beat.status}`); - Set
PROJECTto your project's ID (Find your IDs):export PROJECT=<id>. - Run it. You should now see
Laptop: active, and Laptop Online under Agents > Connected in Studio:Shellnode worker.mjs
Try it in a sandbox
Install the SDK
Save the worker
Set PROJECT
Run it
Check it