Set up your first Agent

Connect a Model, create an Agent, and choose execution permissions.

Setup connects a Model, creates an Agent, and selects execution permissions. It runs automatically when no default Agent is configured or the selected Agent has no Model. To run it again, quit the TUI and use:

Terminal
a13n-harness-ui setup

The TUI has no /setup command. Explicit setup returns to your shell after saving; first-use setup then opens the TUI composer.

1. Connect a Model

Choose a ChatGPT, Codex, Grok, or GitHub Copilot subscription, or an API-key connection.

ConnectionWhat you provideWhere credentials live
ChatGPT subscriptionSign-in and the complete callback URLHarness UI data root (auth.json)
Codex subscriptionCompatible loginShared Codex account store
Grok subscriptionCompatible loginShared Grok account store
GitHub Copilot subscriptionDevice login or an existing Copilot CLI loginHarness UI data root (oauth/copilot.json) or the Copilot CLI store
API keyProvider/protocol, model ID, and key referenceAn environment variable or Harness UI's local key store

Reuse a detected login, sign in with the offered method, or configure the connection and sign in later with a13n-harness-ui login <provider>. If an account store needs repair, follow the displayed guidance. Login runs outside the TUI.

For API keys, setup offers a hidden key field. You can also supply env:OPENAI_API_KEY or key:key-primary. Never paste a key into the TUI composer. A newly entered key is saved immediately to the separate local key store, not to Model YAML.

Models and authentication covers login methods, stored keys, and account locations.

2. Select the model and settings

Choose a suggested model or enter a case-sensitive API model ID. Suggestions come from the installed catalog; check availability with your provider. Reusing a Model keeps its existing settings.

For a new Codex connection, setup also offers Fast or Standard service. Fast requests priority; it may consume more quota and does not guarantee speed. Use /fast for a temporary change or edit the Model for a permanent one.

API-key setup adds an optional Shell review model step. Choose a suggestion or enter a model ID to enable review. Lightweight models in the same family appear first, but nothing is selected automatically. Skip to leave shell review off. The reviewer uses the same endpoint and key reference in a separate Model, without copying the main Model's settings. Each review makes an additional model request; suggestions do not verify access or review quality.

Setup saves known media-input capabilities for the selected route. For custom endpoints, verify supported image, audio, and video input before editing these declarations.

See Model settings, context budgets, and Fast mode.

3. Choose execution permissions

  • Full Control: commands run with your host account's filesystem and network authority. No Envd runtime is required.
  • Sandbox: setup checks local isolation prerequisites before saving. Failure does not fall back to Full Control. Built-in Windows execution supports Full Control only.

Your selection saves configuration without an additional confirmation step. Read execution permissions before choosing.

The TUI uses its launch directory as the working directory; on the first prompt it selects or creates a single-root Project for that directory. Setup does not require a Project file or create a default project-local resource.

Advanced setup

Terminal
a13n-harness-ui setup --advanced

Advanced setup exposes optional context, reasoning, shell-review, subagent, and instruction choices. Normal setup supplies starter values; these are still editable YAML, not hidden application state.

Normal setup includes three built-in Subagent roles. When shell review is selected, it initializes absent security.shell_review settings to review shell launches and request approval at extra_high risk. API-key setup without a reviewer initializes the shortcut as disabled. Codex setup selects a separate review Model and enables Guardian credit linking. Existing review settings remain unchanged. Review is separate from isolation; see shell review configuration.

Built-in subagents inherit the parent Model. Advanced setup offers all or none; edit subagents.include to choose individual roles. External Codex/Claude Code subagent import is a separate /import workflow, not part of setup.

Add another connection or Agent

Terminal
a13n-harness-ui add model
a13n-harness-ui add agent

add model creates a reusable Model and offers a separate Agent flow. add agent lets you reuse a Model or create a new one, then name the Agent. Reuse references the existing Model without copying or editing it. Repeated names allocate separate identities; existing defaults and conversations remain unchanged.

Use /agent to switch the complete Agent. Use /model to select a configured Model for this Project while keeping the current Agent's instructions and tools; /model default clears that choice.

Cancel or recover setup

Use Up/Down and Enter, or type option numbers. Esc goes back; Ctrl+C or Ctrl+D cancels. Cancelling first-use setup returns to the shell without opening the TUI composer.

Cancelling preserves completed logins and saved keys. If saving several files fails, inspect the paths listed in the error before retrying. Legacy .a13n-harness-ui-setup-recovery-* directories are left untouched.

Inspect what was saved

The generated root configuration explicitly enables WebUI Sidekick:

YAML
webui:
  sidekick: {}

To disable Sidekick, set sidekick: null or choose Settings → General → Sidekick → Disabled. Setup preserves existing Sidekick choices; the preference alone starts no work.

Terminal
a13n-harness-ui config path
a13n-harness-ui config show --format json
a13n-harness-ui config validate

Continue with configuration recipes or the starter root document.

On this page