Skip to content

Configuration

Gee-Code uses layered configuration. Rules from all layers combine, with more specific layers taking priority:

FileScopePurpose
~/.gee-code/gee.mdGlobalYour personal preferences, coding style, workflow rules
.gee/gee.mdProjectProject-specific guidance and rules
.gee/continuity.mdSessionSession state ledger (auto-managed)
.gee-code/config.jsonGlobalTechnical settings (model, provider, RLM, etc.)

This file is loaded for every session in every project. Use it for personal rules:

# User Preferences
## Coding Style
Always use TypeScript. Prefer functional style.
## Communication
Be concise. Explain reasoning only when asked.
## Workflow
Never auto-commit. Always run tests before suggesting done.
## Git Commit Conventions
All commits must use conventional commit format: type(scope): description

Gee-Code reads this as natural language instructions. Write it however makes sense to you.

Per-project rules and context. Generated by /init or written manually:

# Project Guide
## Project Overview
A React + Express full-stack app with PostgreSQL.
## Key Rules
- Follow existing code patterns
- Ask before major architectural changes
- Never modify the migration system directly

Every project can have its own rules that override or extend your global preferences.

Switch AI models during a session:

/model sonnet # Claude Sonnet (fast, capable)
/model opus # Claude Opus (most capable)
/model haiku # Claude Haiku (fastest, cheapest)
/model gpt4o # GPT-4o
/model gemini # Gemini Pro

Add custom model aliases:

/model add my-model provider/model-id

Set a default model in config:

/model default sonnet

Gee-Code supports multiple AI providers. See Models & Providers for the full list and setup instructions.

Quick overview:

  • Anthropic — Claude models (default)
  • OpenAI — GPT models
  • Google — Gemini models
  • xAI — Grok
  • Groq, Cerebras — Fast inference
  • Ollama — Local models
  • OpenRouter — Multi-model gateway
  • Custom — Any OpenAI-compatible API

Manage providers with /provider.

API keys are managed through a multi-source resolution system:

/credentials # Show all credential status
/credentials set openai # Set an API key

Credentials are resolved from (in order):

  1. Credentials store (scoped to gee/team/endeavor)
  2. Local file (~/.gee-code/credentials.json)
  3. Environment variables
  4. Gee backend (your stored credentials)

See Models & Providers for details.

VariablePurpose
GEE_CODE_MODELDefault model
GEE_CODE_PROVIDERDefault provider
GEE_CODE_WEB_PORTWeb UI port (default: 7779)
GEE_CODE_DEBUGEnable debug output
ANTHROPIC_API_KEYAnthropic/Claude API key
OPENAI_API_KEYOpenAI API key
GOOGLE_API_KEYGoogle/Gemini API key
FAL_KEYFAL image/video generation key