Source Code:
src/gaia/api/The GAIA API Server exposes GAIA agents as “models” through an OpenAI-compatible REST API, enabling integration with VSCode extensions and other OpenAI-compatible clients.
Quick Start
1
Start Lemonade Server
Start with extended context for Code agent:
2
Start GAIA API Server
3
Test the Server
Prerequisites
GAIA Installation
Install GAIA with API support:Installs FastAPI and Uvicorn required for the API server.
Lemonade Server
Must be running with sufficient context:
Required Models: Download
Qwen3.5-35B-A3B-GGUF via Lemonade’s model managerServer Management
Start Server
- Basic
- Background
- Debug
- Custom
Start in foreground:
Check Status
Stop Server
Usage Examples
Python (OpenAI Client)
JavaScript/Node.js
cURL
- Non-Streaming
- Streaming
Available Models
gaia-code
Autonomous Python/TypeScript development agent with intelligent routing
Full specifications: API Server Specification
Troubleshooting
Server Won't Start
Server Won't Start
Check if port is in use:Try different port:
- Mac/Linux
- Windows
Connection Refused
Connection Refused
Verify server is running:Check health endpoint:
Agent Errors
Agent Errors
Check Lemonade is running:Verify context size:Enable debug mode:
Common Issues
More help: FAQ
VSCode Integration
VSCode Extension
Use GAIA Code directly in Visual Studio Code with the Language Model Provider extension
1
Start Servers
Start Lemonade server with extended context:Start GAIA API server:
2
Install Extension
Build and install the GAIA VSCode extension→ VSCode Integration Guide
3
Select Model
Select GAIA models from VSCode’s model picker
Technical Documentation
API Specification
Complete API reference with request/response formats
Routing Guide
Intelligent language/framework detection
Code Agent
Code agent capabilities and usage
Development Guide
Development and contribution guidelines