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-Coder-30B-A3B-Instruct-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
| Property | Value |
|---|---|
| Model ID | gaia-code |
| Context | 32K input / 8K output |
| Requirements | Lemonade with --ctx-size 32768 |
| Description | Autonomous development agent with planning, generation, and testing |
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
| Issue | Solution |
|---|---|
| ”Model not found” | Use correct model ID: gaia-code |
| ”Agent processing failed” | Ensure Lemonade is running with --ctx-size 32768 |
| ”Port already in use” | Stop existing server or use --port flag |
| Streaming not working | Ensure "stream": true in request |
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