@workgraph/agent
Local agent for Workgraph. Polls the
cloud server for jobs and runs them against the Claude CLI on your machine
— so your code never leaves your laptop.
Prerequisites
- Node 20+
claude CLI installed and authenticated (claude /login works)
git configured for any private GitHub repos you want to document
Install
npm install -g @workgraph/agent
workgraph login
workgraph login defaults to the hosted Workgraph server at
https://workgraph-beta.vercel.app. Self-hosters can override with
--url or the WORKGRAPH_SERVER_URL env var.
Commands
workgraph login
workgraph login --dev
workgraph login --url <url>
workgraph status
workgraph logout
workgraph run
workgraph repo add <owner/name> <path>
workgraph repo list
workgraph repo remove <owner/name>
Configuration
Credentials are stored at ~/.workgraph/config.json (mode 0600). The
file contains your agent ID, bearer token, and the server URL you paired
against. Delete with workgraph logout.
Environment variables:
WORKGRAPH_SERVER_URL | Default server URL for workgraph login (overridden by --url). |
Build from source
npm install
npm run build
node dist/index.js run
Test
npm test
License
MIT — see LICENSE.