npm install
cp .env.example .env.local
npm run devOpen http://localhost:3000.
npm run desktop:devThe desktop dev command starts Next.js on port 3210 by default and launches Electron against that local URL.
Build an unsigned package for the current OS:
npm run desktop:build
npm run desktop:smokeBuild a specific platform on a matching host or CI runner:
npm run desktop:build:win
npm run desktop:build:linuxArtifacts are written to desktop_dist/. Windows builds are unsigned and may show SmartScreen warnings. Linux builds are best verified on a native Linux runner or with the Package Desktop GitHub Actions workflow.
npm run build
npm run startdocker compose up --buildThe compose file mounts agent_runs/ and agent_threads/ so local history survives container restarts.
Required for cloud providers:
GEMINI_API_KEYfor Gemini.MODEL_API_KEYfor OpenAI or compatible providers.ANTHROPIC_API_KEYfor Claude.
Optional:
MODEL_PROVIDER=gemini|openai|anthropic|ollamaMODEL_BASE_URL=...MODEL_NAV_MODEL=...MODEL_SYNTH_MODEL=...MODEL_SYNTH_ENABLED=1RUN_STORE_DIR=./agent_runsTHREAD_STORE_DIR=./agent_threadsMAX_STEPS=160ALLOWED_DOMAINS=CAPTURE_ARTIFACTS=1BROWSER_HEADLESS=falseCDP_HTTP=http://127.0.0.1:9222
Run an agent task through the HTTP API:
npm run agent:cli -- "Go to https://example.com and summarize the page"Use the local MCP test client:
npm run mcp:cli list_runs
npm run mcp:cli agent_stateStart the stdio MCP server:
npm run mcp:stdio