Skip to content

Configuration

Supported LLM Providers

Gravity uses a generic OpenAI-compatible client, so any provider exposing an OpenAI-compatible API works out of the box.

ProviderBase URLAuthNotes
Ollamahttp://localhost:11434NoneLocal models, auto-detects running instance
LM Studiohttp://localhost:1234NoneLocal server with model management UI
OpenRouterhttps://openrouter.ai/api/v1API KeyAccess to 100+ models via single key
OpenAIhttps://api.openai.com/v1API KeyGPT-4o, GPT-4o-mini, etc.
Groqhttps://api.groq.com/openai/v1API KeyUltra-fast inference, free tier available
Google AI Studiohttps://generativelanguage.googleapis.com/v1beta/openai/API KeyGemini models
TogetherAIhttps://api.together.xyz/v1API KeyOpen-source models, competitive pricing
GitHub Modelshttps://models.inference.ai.azure.comGitHub TokenFree for GitHub users, GPT-4o access
CustomAny URLAPI KeyAny OpenAI-compatible endpoint

Model Selection

Each provider supports different models. Recommended coding models by category:

Local (Ollama / LM Studio)

  • qwen2.5-coder:1.5b - Fast, good for simple tasks (1.5B params)
  • qwen2.5-coder:7b - Balanced performance (7B params)
  • deepseek-coder:6.7b - Strong code generation
  • codellama:7b - Meta's code-specialized model
  • deepseek-coder:33b - Best local quality (needs 24GB+ RAM)

Cloud (OpenRouter / OpenAI / Others)

  • anthropic/claude-3.5-sonnet - Best overall coding agent
  • anthropic/claude-3.5-haiku - Faster, cheaper, still excellent
  • google/gemini-pro-1.5 - Large context window (1M tokens)
  • openai/gpt-4o - Strong general purpose
  • openai/gpt-4o-mini - Cost-effective for simple tasks
  • meta-llama/llama-3.1-405b - Largest open model on OpenRouter

Development Modes

Controls how much autonomy agents have when executing tasks:

ModeBehaviorUse Case
Autopilot (default)Agents execute without confirmation. Files are written, commands run automatically.Trusted environments, clear tasks, greenfield projects
ReviewApproval required before destructive operations (file writes, shell commands). Shows diff preview.Production codebases, sensitive changes, learning the system
AssistedFull human-in-the-loop. Every tool call requires explicit approval.High-risk changes, teaching/mentoring, audit requirements

Configure in Settings → Development Mode. The mode persists across sessions.

Advanced Settings

  • Max Steps - Maximum reasoning iterations per task (default: 25)
  • Context Budget - Max tokens injected per step (default: 700 chars × 2 chunks)
  • RAG Re-index Interval - Full workspace re-index (default: 5 minutes)
  • Agent Pool Size - Max concurrent AppEngine instances (default: 5)
  • Theme - Light/Dark/System (affects AvalonEdit, WebView2, Quill editor)
  • Font Size - Editor and chat font scaling
  • Telemetry - Opt-in anonymous usage statistics

All settings stored in %APPDATA%/Gravity/settings.json.