Configuration

Current configuration

Local TUI options

stubforge-tui --root /path/to/project --server /path/to/stubforge-lsp

Hosted TUI options

stub-agent-tui --portal-url https://stubby-3v6.pages.dev --project personal
# Non-interactive alternative:
STUB_AGENT_API_KEY="$(cat ~/.config/stubby/api-key)" stub-agent-tui --endpoint https://stubby.maelstrom-labs.workers.dev --project personal

The interactive first-run flow opens the account portal and accepts a pasted key through a no-echo terminal prompt. Alternatively set STUB_AGENT_API_KEY or pass --api-key. Create and revoke keys through the portal. Keep keys out of shell history, project files, and source control. The hosted TUI uploads eligible source files to the configured Worker.

LLM gateway environment

The LSP server uses the local core gateway for single-symbol proposals. Ollama is the default; OpenAI-compatible endpoints can be selected explicitly. The configured gateway receives the source context included in the generation request.

Project files

The current TUI respects .gitignore and limits source upload to 1 MB per file and 10 MB total. The complete configuration precedence, .stubforgeignore, supplemental context file controls, and redaction rules remain under development.