Skip to main content
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.
Technical Specifications: API Server Specification

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 manager

Server Management

Start Server

Start in foreground:

Check Status

Stop Server


Usage Examples

Python (OpenAI Client)


JavaScript/Node.js


cURL


Available Models

gaia-code

Autonomous Python/TypeScript development agent with intelligent routing
Intelligent Routing: The gaia-code model uses GAIA’s Routing Agent to automatically detect your target programming language (Python or TypeScript) and project type based on framework mentions.→ Learn about Routing
Full specifications: API Server Specification

Troubleshooting

Check if port is in use:
Try different port:
Verify server is running:
Check health endpoint:
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
Quick Setup:
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