Repository navigation
API Agent
github-actions[bot] edited this page Oct 13, 2026
·
2 revisions
Canonical source:
docs/12-reference/api-reference-agent.md— this page is rendered from it on every publish; edit the source.
Base URL:
- via Nginx:
http://localhost:4000/api/v1 - direct:
http://localhost:4015/api/v1
POST /agent/sessionsGET /agent/sessionsGET /agent/sessions/:idDELETE /agent/sessions/:idPOST /agent/sessions/:id/heartbeat
{
"hostname": "IHAB-LAPTOP",
"platform": "windows",
"agentVersion": "0.1.0"
}POST /agent/commandsGET /agent/commandsGET /agent/commands/pendingGET /agent/commands/:idPOST /agent/commands/:id/approvePOST /agent/commands/:id/rejectPOST /agent/commands/:id/complete
The approval flow is human-in-the-loop:
- user creates command
- user approves or rejects it
- CLI polls pending approved commands
- CLI reports completion
POST /agent/reposGET /agent/reposGET /agent/repos/:idPATCH /agent/repos/:idDELETE /agent/repos/:id
POST /agent/eventsGET /agent/events
The CLI uses this to report file-system activity from watched local repositories.
ClawAI Wiki · source-controlled under wiki/ · generated/mirrored from the current repository knowledge layer.
ClawAI Wiki
Product
- Product-Vision
- Flagship-Features
- Business-Overview
- Requirements-Register
- Drift-Log
- Runtime-Managed-Connector-Providers
- Threads
- ADR-Index
Architecture
- System-at-a-Glance
- Architecture-Map
- System-Architecture
- Message-Flow
- End-to-End-Data-Flow
- Routing-Engine
- Event-Bus
- Security-Architecture
Platform
- Backend-Services
- Frontend-Architecture
- Shared-Packages
- Database-Reference
- API-Reference
- Provider-Catalog
- Memory-and-Context-Architecture
- File-Support-Architecture
- Research-and-Web-Crawling
Runtime & Ops
- Docker-Guide
- Nginx-Reference
- CI-CD-Pipeline
- Logging-and-Observability
- Operational-Runbooks
- Troubleshooting
Quality
Engineering OS
- AI-Native-Engineering-OS
- Generated-Manifests
- Rules-Catalog
- Skills-Catalog
- Context-Layer
- Engineering-Memory
- Tooling-and-Automation
- Scripts-and-Operations
- ESLint-and-Architecture-Enforcement
- Extended-Work-Skills
Agents
Reference