Skip to content
Back to Dashboard

Documentation

Everything you need to integrate, configure, and operate Execlave.

Copy this prompt to your AI coding assistant
Integrate Execlave into my project. Install @execlave/sdk (npm) or execlave-sdk (pip). Initialize with: const ag = new Execlave({ apiKey: process.env.EXECLAVE_API_KEY, baseUrl: 'http://localhost:4000' }); Register my agent: await ag.registerAgent({ agentId: 'my-agent', name: 'My Agent', type: 'chatbot', platform: 'custom' }); Wrap LLM calls: const trace = ag.startTrace({ agentId: 'my-agent' }); trace.setInput(userMessage); const response = await llm.call(userMessage); trace.setOutput(response).setModel('gpt-4').finish(); Add shutdown handler: process.on('SIGTERM', () => ag.shutdown()); See full guide: /docs/getting-started

Getting Started

Guides

Reference

Quick Reference

EndpointMethodDescription
POST /api/agentsRESTRegister a new AI agent
POST /api/traces/ingestRESTSubmit execution traces (batched)
POST /api/policiesRESTCreate a governance policy
POST /api/policies/enforceRESTPre-execution policy check
PATCH /api/agents/:id/pauseRESTKill switch — pause an agent
POST /api/agents/:id/grantsRESTCreate agent-to-agent access grant
POST /api/agents/authorizeRESTCheck agent authorization
POST /api/webhooksRESTRegister a webhook

Install

JavaScript / TypeScript

npm install @execlave/sdk

Python

pip install execlave-sdk