Skip to content

Documentation

Configuration

Quick Setup

Use a preset to get started fast:

# CorvidLabs preset - sets author, org, license, template repo
fledge config init --preset corvidlabs

# Default config
fledge config init

Config File

Lives under the platform config directory:

PlatformPath
macOS~/Library/Application Support/fledge/config.toml
Linux~/.config/fledge/config.toml
Windows%APPDATA%\fledge\config.toml

Sections

[defaults]

Default values for new projects:

[defaults]
author = "Your Name"
github_org = "YourOrg"
license = "MIT"
KeyWhat it doesFallback
authorDefault author namegit config user.name
github_orgDefault GitHub orgPrompted
licenseDefault licenseMIT

[templates]

Where to find templates:

[templates]
paths = ["~/my-templates", "~/work/templates"]
repos = ["CorvidLabs/fledge-templates", "myorg/templates"]
KeyWhat it does
pathsLocal directories with templates
reposGitHub repos to pull templates from (owner/repo)

[ai]

AI provider and model settings. Written by fledge ai use or fledge config set/edit:

All providers are reached over plain HTTP (no CLI). provider is one of ollama, anthropic, openai, openrouter, gemini, deepseek, groq, mistral, xai, together (claude is a deprecated alias of anthropic). When unset, fledge auto-detects the first provider with a key, falling back to keyless local Ollama.

[ai]
provider = "anthropic"          # ollama | anthropic | openai | openrouter | gemini | deepseek | groq | mistral | xai | together

[ai.anthropic]
model = "claude-sonnet-4-6"     # default if unset
api_key = "sk-ant-..."          # or export ANTHROPIC_API_KEY
# base_url = "..."              # optional override

[ai.openai]                     # any OpenAI-compatible gateway
base_url = "https://openrouter.ai/api/v1"
api_key = "sk-..."              # or export OPENAI_API_KEY
model = "anthropic/claude-sonnet-4-6"  # required (no default)

[ai.ollama]
host = "http://localhost:11434" # Ollama API endpoint (always normalized to include scheme)
model = "llama3.3"              # use `fledge ai models --provider ollama` to list available models
api_key = "sk-..."             # for Ollama Cloud / authenticated endpoints
timeout_seconds = 600          # request timeout (default: 600)

The OpenAI-compatible gateways (openrouter, groq, deepseek, mistral, xai, together, gemini) are key-driven: set <PROVIDER>_API_KEY (e.g. GROQ_API_KEY); their endpoint and default model come from the corvid-ai registry.

Tip: Run fledge ai models --provider ollama (live) or --provider anthropic (curated) to see models. Use fledge ai use for an interactive picker.

KeyWhat it doesDefault
ai.providerActive LLM backendauto-detect → keyless local Ollama
ai.anthropic.modelAnthropic model idclaude-sonnet-4-6
ai.anthropic.api_keyAnthropic key (or ANTHROPIC_API_KEY)(none)
ai.anthropic.base_urlAnthropic endpoint overridehttps://api.anthropic.com
ai.openai.base_urlOpenAI-compatible gateway URLOpenAI
ai.openai.api_keyOpenAI-compatible key (or OPENAI_API_KEY)(none)
ai.openai.modelModel id (required: no default)(none)
ai.ollama.hostOllama API endpoint URLhttp://localhost:11434
ai.ollama.modelOllama model namellama3.3
ai.ollama.api_keyBearer token for authenticated endpoints(none)
ai.ollama.timeout_secondsRequest timeout in seconds600

[trust]

Extend the plugin/lane trust system without recompiling. Entries here classify as team tier, granting access to exec and network capabilities:

[trust]
orgs = ["my-company", "my-other-org"]
users = ["my-friend", "trusted-bot"]
KeyWhat it does
orgsGitHub orgs to trust at team tier
usersGitHub users to trust at team tier

Manage via CLI:

fledge config add trust.orgs my-company
fledge config add trust.users 0xLeif
fledge config remove trust.orgs my-company

Compared case-insensitively. The hardcoded official org (CorvidLabs) and built-in team members are always trusted regardless of config.

[github]

[github]
token = "ghp_..."

Token priority:

  1. FLEDGE_GITHUB_TOKEN env var
  2. GITHUB_TOKEN env var
  3. Config file
  4. gh auth token (GitHub CLI fallback)

Required token scopes:

FeatureScopes needed
Issues, PRs, CI checksrepo (or public_repo for public repos only)
Create PRs, push branchesrepo
Search templates/pluginspublic_repo
Publish templatesrepo, delete_repo (if republishing)

A classic token with repo covers everything. For fine-grained tokens, grant Read/Write on Contents, Pull Requests, and Issues for each repo you work with.

Full Example

[defaults]
author = "Leif"
github_org = "CorvidLabs"
license = "MIT"

[templates]
paths = ["~/.fledge/templates", "~/projects/templates"]
repos = ["CorvidLabs/fledge-templates", "my-org/my-templates"]

[trust]
orgs = ["my-company"]
users = ["0xLeif"]

[github]
token = "ghp_..."

[ai]
provider = "anthropic"

[ai.anthropic]
model = "claude-sonnet-4-6"

[ai.ollama]
host = "http://localhost:11434"
model = "llama3.3"
timeout_seconds = 600

Environment Variables

VariableWhat it does
FLEDGE_NON_INTERACTIVETruthy (1, true, yes, y, on) silences prompts. Same effect as passing --non-interactive (alias --ni) per invocation. Confirmation prompts behave as --yes; prompts with no default bail with a clear error instead of hanging. Hook exception: for ad-hoc remote templates passed to templates init (--template owner/repo not in config), post_create hooks are skipped unless trust is granted explicitly via --trust-hooks or FLEDGE_TRUST_HOOKS. Built-in templates, anything under templates.paths, and anything reachable through your configured templates.repos still follow the --yes consent path.
FLEDGE_TRUST_HOOKSTruthy authorizes post_create hook execution for ad-hoc remote templates passed to fledge templates init. Same as passing --trust-hooks. Has no effect on templates reached through templates.paths or templates.repos (those already follow the --yes consent path). Hooks run arbitrary shell commands; only set this for sources you trust.
FLEDGE_GITHUB_TOKENGitHub token (highest priority)
GITHUB_TOKENGitHub token (fallback after FLEDGE_GITHUB_TOKEN)
FLEDGE_AI_PROVIDERAI provider override (ollama, anthropic, openai, openrouter, gemini, deepseek, groq, mistral, xai, together)
FLEDGE_AI_MODELAI model override
FLEDGE_AI_TIMEOUTRequest timeout in seconds
ANTHROPIC_API_KEYAnthropic API key
OPENAI_API_KEYOpenAI-compatible API key
<PROVIDER>_API_KEYGateway key, e.g. GROQ_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY
OLLAMA_HOSTOllama API endpoint URL
OLLAMA_API_KEYOllama Bearer token

If neither env var nor config is set, fledge falls back to gh auth token (GitHub CLI) automatically for GitHub operations.

Project Configuration (fledge.toml)

Per-project settings live in fledge.toml in your project root. This file defines tasks, lanes, and release behavior. It's created by fledge run --init, fledge lanes init, or fledge templates init.

For the full schema (every section, every key, every default), see the fledge.toml Reference.

Topical guides:

Priority Order

When creating a project, values come from (highest to lowest):

  1. Command-line arguments
  2. Config file
  3. Git config (author only)
  4. Built-in defaults