Getting startedDocumentation
Documentation
Fondation documentation: Fable, its models, and Duet CLI.
Fondation documentation is the hub for everything Fable: the platform, its models, and Duet CLI.
Getting started
- Getting started — create an account, sign in, and make your first request.
Fable
- Fable platform — accounts, workspaces, and the platform's public boundaries.
- Authentication — account sessions, Duet CLI sign-in, and server API keys.
- Plans and usage — plan availability, subscriptions, and weekly usage.
Models
Fondation builds its own models and serves them through Fable.
- Models — how to choose between Lune I and Frontier I.
- Lune I — Fondation's model for adaptive reasoning, coding, research, and tool workflows.
- Frontier I — Fondation's flagship model for the most demanding work.
Duet CLI
Duet CLI is Fable's coding agent for the terminal.
- Duet CLI — the agent, its account access, and its models.
- Install Duet CLI — the one-line installer for each platform, with checksum verification.
- Commands and workflows —
duetcommands, flags, permissions, and configuration. - Project workflows — your first project, approvals, sessions, Git worktrees, and MCP.
- Configuration and storage — verified paths, environment variables, and credential storage.
- Troubleshooting — diagnosing installation, authentication, availability, and limits.
Security and reference
- Security — credential handling, server-side authorization, model access, and operational boundaries.
- Changelog — public documentation and product availability notes.
Pricing and availability
Pricing is announced on the plans page. Model availability depends on your plan and is always discovered from the account rather than assumed.
Security and support
Keep account sessions and API keys on the server making the request. Read the authentication guide before connecting a service.
Getting startedDocumentation
Getting started
Understand account access, model discovery, and your first Fable Gateway request.
This guide takes you from a Fable account to a running conversation with a Fondation model — on the web and in the terminal.
1. Create your account
Sign up or sign in at fable.fondation.ink. Duet CLI has its own duet signup and duet login commands; it uses your Fable account session, so no separate credential is needed for the default provider.
2. Pick a model
Fable shows the models your account can use. Choose Lune I for everyday work or Frontier I for the most demanding tasks — see Models for how to choose.
In Duet CLI, run duet in a project directory and select a model in the interactive session.
3. Try Duet CLI
Install the public release with one command — see Install Duet CLI — then sign in with duet login and start with duet in your project directory.
4. For developers
For server-to-server access, create an API key in Fondation Platform. The full key is shown once; store it in a server-side secret manager. Read the authentication guide before connecting a service.
If something fails
Read the status from the server or the CLI. 401 means the credential is invalid or expired; 403 means the account or model is not entitled; 429 means a rate or usage limit was reached. The server is the authority for account, plan, and model state — not cached or browser-stored data.
FableDocumentation
Fable platform
Fable accounts, workspace, Fable Gateway, and the platform's public boundaries.
Fable is Fondation's account and workspace product. The web experience connects an account to its plan and model access. Fable is distinct from Lune I and Frontier I, which are model products, and Duet CLI, which is the terminal coding agent.
Account and request lifecycle
- A person signs in through Fable Auth.
- The server verifies the account session and current subscription state.
- The model endpoint checks model permission, current quota, and request limits.
- The server accounts the request before returning the response.
Client-supplied plan names, cached usage, or old CLI sessions do not grant access. The server re-evaluates access when a request arrives.
Surfaces
- Fable web account: sign-up, confirmation, recovery, sign-in, dashboard, plan status, and usage presentation.
- Fondation Platform: account-owned server API keys and developer tools. API keys are shown once and can be revoked or expired.
- Duet CLI: local CLI authentication to a Fable account, model selection, tool approval, and project workflows. See Duet CLI.
- Models: Lune I and Frontier I, discovered per account at sign-in. See Models.
Limits and service terms
The platform applies request and usage controls per account and plan. The plans and usage guide explains the difference between announced prices, entitlement state, and actual usage controls.
FableDocumentation
Authentication
Fable account sessions, Duet CLI sign-in, and server API keys.
Fable account authentication, Fondation Platform API keys, and provider credentials are separate credentials. Use each only on the server or product surface that issued it.
Fable account
The web account uses Supabase Auth for sign-up, email confirmation, recovery, and sessions. Do not claim confirmation or recovery email was delivered based only on an HTTP response; verify the message in an authorized mailbox.
Duet CLI provides duet signup, duet login, and duet logout. The default Fable Gateway provider uses the secure Fable Account session. The CLI tells you to run duet login and not to pass --key to that provider. A separate provider may use duet auth for its own credentials.
Server API keys
For server-to-server requests, create an account-owned key from Fondation Platform. The secret is returned only once, uses the fnd_sk_ prefix, and is stored server-side as a hash. The current scope is chat completions. Keys can be listed, renamed, expired, or revoked without revealing the original secret.
Send it as a bearer credential:
Authorization: Bearer $FONDATION_API_KEYDo not place an API key in browser JavaScript, a public repository, a URL, or a client-side Duet CLI configuration file. Fable Gateway accepts an account session or an active server API key; an API key does not bypass subscription, model, quota, or rate checks.
Expiration and revocation
Each protected request is checked against the key record and account state. Expired or revoked keys stop authorizing requests. Duet CLI sessions can be refreshed or revoked through its account commands. If a credential returns 401, sign in again or issue a new key; do not retry using a stale token indefinitely.
Supabase project keys
The public SUPABASE_PUBLISHABLE_KEY identifies the client application and is safe for browser use with Row Level Security. SUPABASE_SECRET_KEY is server-only and bypasses Row Level Security; it must stay in a Secret environment variable and be scoped to the correct project and environment. See Supabase API keys.
FableDocumentation
Plans and usage
Plan availability, subscription lifecycle, weekly usage, and entitlement enforcement.
The public plans page announces Fable Pro at $20 per month, Max at $100 per month, and Max+ at $200 per month. These are announced prices, not an offer to purchase: checkout is not currently on sale from the public website. Do not create a subscription or promise a quota from these names alone.
Entitlements
The server maps Stripe subscription state to a Fable entitlement. Each model is separately included in the server catalog and plan mapping. Only an active paid entitlement with a matching catalog entry can call a paid model. Free accounts do not receive paid-model access.
Weekly usage
Paid usage is accounted in separate input, cached-input, and output dimensions. Weekly periods and plan-specific limits are enforced on the server before a request is sent upstream. The usage page is a presentation of server accounting, not a monetary balance or additional fee. Exact allowances are not published as a checkout commitment; use the account's server-returned usage status when the feature is available.
The gateway can reject a request when an account quota, per-request limit, spending budget, or durable request limit is reached. 429 responses may include Retry-After. The CLI pauses Fable Gateway access when it cannot verify the current usage status.
Subscription changes
When paid checkout is released, the subscription flow is designed to support upgrades, scheduled downgrades, cancellation, failed renewal, and recovery. A cancellation request keeps paid access through the verified paid-through time. At the expiration boundary, the server rechecks the entitlement on every protected request; an old browser or CLI session cannot extend it.
No live billing lifecycle is claimed here. The protected Preview currently returns 503 for entitlement and usage routes, and public paid checkout remains disabled. See the Stripe subscription guide for Stripe's general subscription primitives; Fable-specific timing and entitlement are determined by the deployed server implementation.
ModelsDocumentation
Models
Lune I and Frontier I: the two Fondation models on Fable.
Fondation builds its own models and serves them through Fable. Two models are available today: Lune I for everyday work and Frontier I for the most demanding work.
| Model | Designed for |
|---|---|
| Lune I | Fast, capable assistance: reasoning, coding, research, and tool-enabled workflows at everyday cost. |
| Frontier I | Fondation's flagship: the hardest reasoning, coding, and research tasks, where quality matters most. |
Choosing a model
Lune I is the default for most work — quick, intelligent, and inexpensive to run. Reach for Frontier I when a task needs the strongest reasoning or the highest-quality result.
The models available to your account are always discovered through Fable rather than listed here: sign in at fable.fondation.ink or run duet in your terminal and pick a model from the picker. Duet CLI presents the models your plan can use.
- Lune I — adaptive reasoning, coding, research, and tool workflows.
- Frontier I — the most demanding reasoning, coding, and research work.
Using the models
Every request runs through the Fable platform: the server checks your account, plan, and model access before the request is accepted. Both models support text conversations, streaming responses, and function tools in Duet CLI and the Fable platform.
Evaluations and benchmark results for both models are published separately once available.
ModelsDocumentation
Lune I
Lune I — Fondation's model for adaptive reasoning, coding, research, and tool workflows.
Lune I is Fondation's proprietary AI model for everyday work: adaptive reasoning, coding, research, and tool-enabled workflows. It is built to be fast, intelligent, and inexpensive to run — the model most people should reach for first.
Lune I is available across the Fable platform and in Duet CLI. Sign in at fable.fondation.ink or run duet in your terminal, and Lune I appears in the model picker for eligible plans.
Designed for
- Everyday reasoning — answers, analysis, writing, and planning with a model that adapts to the task.
- Coding — reading, writing, and refactoring code across your project, inside Duet CLI's agentic workflows.
- Research — synthesizing information and working through multi-step questions.
- Tool workflows — function calls and agent loops, where Lune I drives tools and evaluates their results.
Capabilities
| Capability | Lune I |
|---|---|
| Conversation | Full multi-turn chat with streaming responses. |
| Tool calling | Supports function tools; the client decides whether to execute each call. |
| Streaming | Server-sent events for token-by-token responses. |
| Long work | Designed for sustained sessions in Duet CLI, with usage that stays inexpensive on everyday tasks. |
Access
Lune I is included in Fable's paid plans. The models your account can use are discovered at sign-in — see Authentication and Plans and usage.
Evaluation results for Lune I are published separately once available; Fondation does not quote numbers it has not measured.
Choosing between them
Fondation offers two models. Lune I covers everyday work; Frontier I is the flagship for the most demanding tasks. See Models for how to choose.
ModelsDocumentation
Frontier I
Frontier I — Fondation's flagship model for the most demanding work.
Frontier I is Fondation's flagship AI model, built for the most demanding work: deep reasoning, complex coding, long-form research, and multi-step tool-enabled workflows. When a task is hard enough that quality matters more than speed, Frontier I is the model.
Frontier I is available across the Fable platform and in Duet CLI. Sign in at fable.fondation.ink or run duet in your terminal, and Frontier I appears in the model picker for eligible plans.
Designed for
- Hard reasoning — multi-step analysis, planning, and judgment on problems that defeat lighter models.
- Complex coding — large refactors, cross-file changes, and architectural work in Duet CLI.
- Deep research — sustained investigation and synthesis over long sessions.
- Agentic workflows — driving tools through long chains of calls while keeping the task in view.
Capabilities
| Capability | Frontier I |
|---|---|
| Conversation | Full multi-turn chat with streaming responses. |
| Tool calling | Supports function tools for agentic work; the client decides whether to execute each call. |
| Streaming | Server-sent events for token-by-token responses. |
| Hard tasks | Tuned for the reasoning depth and persistence difficult work requires. |
Access
Frontier I is included in Fable's higher plans. The models your account can use are discovered at sign-in — see Authentication and Plans and usage.
Evaluation results for Frontier I are published separately once available; Fondation does not quote numbers it has not measured.
Choosing between them
Fondation offers two models. Lune I covers everyday work; Frontier I is the flagship for the most demanding tasks. See Models for how to choose.
Duet CLIDocumentation
Duet CLI
Fable's terminal coding agent and its relationship to the Fable platform.
Duet CLI is the coding agent by Fable — Fable's terminal coding agent, formerly Fable Code CLI. The command is duet (fable still works as an alias); the current release reports version 0.0.9. Duet CLI can read project files, propose edits, run terminal commands, and connect to configured providers through an interactive terminal workflow.
Duet CLI is a local CLI product, not the Fable account website. The CLI source is built on the upstream open-source Cline codebase and retains its Apache-2.0 attribution and compatibility identifiers.
Account and model access
The CLI's default provider is Fable Gateway and uses a secure Fable Account session. Run duet login before using that provider. Do not pass --key to the Fable Gateway provider. A provider configured through duet auth uses that provider's own credentials.
The authenticated model picker reflects the account entitlement and server catalog. A plan name or saved local session does not grant model access. See Fable authentication and Plans and usage.
Safety
Interactive tool calls wait for user approval by default. --auto-approve, --yolo, and --zen grant broader authority and should only be used when the working directory and process environment are appropriately isolated. --sandbox restricts shell commands to the workspace and blocks network by default; --sandbox-network opts into network access for the sandbox.
Availability
Duet CLI ships as a prebuilt binary, installed with one command per platform. There is no npm or other registry install command. See Install Duet CLI for the verified installer and the supported operating-system matrix, and the command reference.
Workflows and local state
Use the project workflow guide for approval modes, isolated worktrees, MCP setup, and session continuation. Configuration and storage documents the source-verified paths and operating-system credential stores. Use Troubleshooting for account, gateway, quota, and local-session errors.
Fable Account sign-in, provider configuration, and server API keys are separate. The current source stores the Fable Account session in the operating-system credential store. It rechecks paid model authorization in Fable Gateway when a request is sent; a local session file or model picker selection does not extend an expired entitlement.
Duet CLIDocumentation
Install Duet CLI
Public release availability and the verified one-line installer.
Duet CLI is the coding agent by Fable (formerly Fable Code CLI). The installer below installs the duet command (fable still works as an alias); a renamed command is planned, and fable will remain as a compatibility alias.
One-line install
Duet CLI installs with one command per platform. The installer downloads a prebuilt binary from the public release in leonnett/duet-install and verifies its SHA-256 checksum — there is no source checkout, no build step, no account, and no package manager involved. Do not run install commands from unofficial package names.
# macOS or Linux
curl -fsSL https://fable.fondation.ink/install.sh | bash# Windows (PowerShell — not as Administrator)
irm https://fable.fondation.ink/install.ps1 | iexThe installer puts the duet command (and the tera compatibility alias) in ~/.local/bin on macOS/Linux, or %LOCALAPPDATA%\FableCode\bin on Windows, then verifies the install with duet --version. Re-run the same command later to reinstall; to install a different release, set DUET_VERSION (for example DUET_VERSION=v0.0.9).
What the installer does
Nothing is hidden; the scripts are served from this site as /install.sh and /install.ps1, so you can read them before running:
- Detects your OS (macOS/Linux) and CPU (x64/arm64), and on Linux
whether you use glibc or musl (Alpine) — each has its own binary.
- Downloads the release metadata (
versions.json) from the public
leonnett/duet-install repository. That file is the single source of truth for file names and SHA-256 checksums.
- Downloads the matching prebuilt binary from the release
(github.com/leonnett/duet-install/releases/download/...) and verifies its SHA-256 checksum against versions.json. On any mismatch it refuses to install anything.
- Installs it as
fable(plus theteracompatibility alias) and
verifies with duet --version and duet --help.
No source code is downloaded. No other software is installed. The installed binary is self-contained: it does not need Bun, Node.js, or git at runtime.
Requirements
- macOS 13 or newer, or Linux (x64 or arm64). Windows 10 version
1809 or newer for the PowerShell installer.
curland a SHA-256 tool (sha256sumon Linux,shasum -a 256on
macOS, both checked by the script). On macOS, curl and shasum ship with the system; on Linux, install them with your package manager if missing.
- No GitHub account, no
git, and no Bun installation are needed to
install. The Duet CLI source repository stays private; only the prebuilt binaries in the public duet-install repository are downloaded.
Verify the install
duet --version
duet --help
duet doctorduet doctor diagnoses configuration issues. Sign in with:
duet loginSupported platforms
Each release ships one prebuilt binary per platform plus SHA256SUMS. The exact file names and checksums for the current release are in versions.json.
| Platform | Binary |
|---|---|
| macOS arm64 (Apple Silicon) | duet-bun-darwin-arm64 |
| macOS x64 (Intel) | duet-bun-darwin-x64 |
| Linux x64 (glibc) | duet-bun-linux-x64 |
| Linux x64 (musl, e.g. Alpine) | duet-bun-linux-x64-musl |
| Linux arm64 (glibc) | duet-bun-linux-arm64 |
| Linux arm64 (musl, e.g. Alpine) | duet-bun-linux-arm64-musl |
| Windows x64 | duet-bun-windows-x64.exe |
| Windows arm64 | duet-bun-windows-arm64.exe |
Verified on Linux x64 in this environment with an anonymous install (no GitHub account, no token): duet --version prints 0.0.9, duet --help works, and duet doctor exits 0. The macOS path uses the same script and the same commands, but was not executed on a Mac here. The Windows PowerShell installer was written from the Unix installer but was not tested on Windows — treat it as untested until someone runs it on real Windows and confirms duet --version. The other platform binaries are published from the same build and their file formats were verified, but they were not executed on their native platforms here. Do not infer certified CPU or package-manager support from the presence of cross-platform binaries.
Updates and removal
- Update: re-run the one-line installer. It downloads the release
named by DUET_VERSION (default v0.0.9) and replaces the binary. Your data in ~/.fable is kept.
- Uninstall (macOS/Linux): delete
~/.local/bin/fableand
~/.local/bin/tera. On Windows: delete duet.exe and tera.exe from %LOCALAPPDATA%\FableCode\bin and remove that folder from your user PATH.
- Your data is kept: uninstalling does not remove
~/.fable(or a
reused ~/.tera) — settings, credentials, and sessions stay available if you install again. Sign out with duet logout before intentionally removing the Fable account session; export any session history you want to keep first.
Build from source (manual path)
The source repository leonnett/Fable-Code-CLI is private, so building from source needs access to it. From a checkout on branch fondation/integration, with Bun 1.4.2 or newer:
bun install --frozen-lockfile --ignore-scripts
bun run build:sdk
bun -F @fable/cli build
bun apps/cli/dist/index.js --help
bun apps/cli/dist/index.js --versionThe last two commands run the built bundle directly with Bun. Running the development CLI without building also works with bun run duet --help from the repository root. None of these commands publish or globally install the executable; the installer above is what creates the global duet command. The --ignore-scripts flag is deliberate: the workspace's grpc-tools postinstall (VS Code extension only) fails under Bun's isolated node_modules layout, and the CLI runtime does not need those postinstall artifacts.
Troubleshooting
- Checksum mismatch: the download may be corrupted. Delete the
temporary files and re-run the installer. Nothing was installed.
curlor SHA-256 tool not found: installcurlandcoreutils
(macOS: brew install coreutils) with your package manager, then re-run.
duet: command not found:~/.local/binis not on your PATH.
Run export PATH="$HOME/.local/bin:$PATH", or add that line to ~/.zshrc (macOS) or ~/.bashrc (Linux). On Windows, open a NEW terminal window so the PATH change loads.
- No binary for your platform: the installer reports the platform
key it looked for. See the releases for the supported platforms.
Duet CLIDocumentation
Commands and workflows
The actual fable CLI commands, flags, permissions, configuration, and update checks.
This reference reflects bun run duet --help, bun run duet auth --help, bun run duet mcp --help, bun run duet update --help, and bun run duet version from the current source CLI. The source version reported 0.0.9.
Main command
fable
fable "Summarize the architecture in this repository"
duet --tui "Review the auth changes"
duet --help
duet versionThe TUI is interactive. Tool calls require approval unless an explicit auto-approval mode is enabled.
Account and provider authentication
duet signup
duet login
fable account
duet usage
duet logout
duet auth --helpduet login authenticates the Fable Account session used by the default Fable Gateway provider. duet auth configures a model provider; it is not a replacement for Fable account sign-in.
Model and session selection
duet --provider fable-gateway
duet --provider cline
duet --model MODEL_ID
duet --continue
duet --id SESSION_ID
duet historyThe default provider is Fable Gateway. cline remains an explicit legacy provider identifier. Choose a Fable Gateway model from the server catalog; if the account has no permitted model, the CLI reports that the gateway has none available.
MCP servers
duet mcp search "filesystem"
duet mcp inspect SERVER_NAME
duet mcp install SERVER_NAME
duet mcp uninstall SERVER_NAMEThe current CLI queries the official MCP Registry for search and inspection. Review the server command and permissions before installation; registry discovery does not establish that a server is safe.
Permissions, workspaces, and sessions
| Option | Behavior |
|---|---|
--plan | Start in plan mode. |
--auto-approve true | Approve tool calls without per-call confirmation. |
--yolo | Run unattended and approve tool calls; use only in a sandbox. |
--zen | Dispatch an unattended run to the background hub. |
--sandbox | Restrict shell commands to the workspace; network is blocked by default. |
--sandbox-network | Allow network access for sandboxed shell commands. |
--worktree | Create a detached Git worktree under ~/.fable/worktrees/ for the run. |
--cwd PATH | Set the working directory for tools. |
--continue | Resume the latest session in the working directory. |
--id SESSION_ID | Resume the named session. |
There is no separate duet branch command in the current help output. Use Git for branch operations and the --worktree option for an isolated task directory.
Configuration and updates
duet config
duet doctor
duet update --check
duet update
fable hub
fable schedule--config PATH, --data-dir PATH, and --hooks-dir PATH select local directories. Defaults shown by CLI help are ~/.fable, ~/.fable/data, and ~/.fable/hooks (an existing ~/.tera directory is reused in place). duet doctor diagnoses local CLI configuration; it does not verify a hosted Fable service.
Not listed as a stable CLI command
The current CLI help does not list a dedicated parallel-agent command. Do not document third-party flags, platform packages, or unattended behavior as a Fondation release feature unless the actual CLI help and a released artifact confirm them.
Top-level command inventory
The source help lists these commands: login, signup, account, usage, logout, auth, config, plugin or plugins, skill or skills, connect, mcp, doctor, history or h, hook, schedule, hub, update, version, and kanban. Use fable COMMAND --help for the options supported by the installed build.
Global options
| Option | Source behavior |
|---|---|
| -p, --plan | Run in plan mode. |
| -y, --yolo | Run unattended and approve tool calls. The help marks this as dangerous. |
| --json | Print messages as JSON. |
| --auto-approve BOOLEAN | Approve every tool call when true; default false. |
| -c, --cwd PATH | Set the working directory for tools. |
| --thinking LEVEL | Choose none, low, medium, high, or xhigh reasoning effort. |
| --compaction MODE | Choose agentic, basic, or off context compaction. |
| -i, --tui | Open the terminal user interface. |
| --id SESSION_ID | Resume a saved session. |
| --continue | Resume the most recent session for the current working directory. |
| -P, --provider ID | Choose a provider. The default is Fable Gateway; cline remains a legacy provider id. |
| -k, --key API_KEY | Supply and save a provider key. Avoid putting secrets in shell history or process arguments. |
| -m, --model MODEL_ID | Choose the model id. Fable Gateway access is still checked server-side. |
| -s, --system PROMPT | Override the default system prompt for a run. |
| -z, --zen | Dispatch to the local background hub with unattended tool approval. |
| --retries COUNT | Set the maximum consecutive mistake retries. |
| -t, --timeout SECONDS | Set an optional run timeout. |
| --acp | Run in Agent Client Protocol mode. |
| --config PATH | Select the configuration directory. |
| --data-dir PATH | Select an isolated local state directory. |
| --hooks-dir PATH | Select the additional hooks directory. |
| --worktree | Create a detached Git worktree for the task. |
| --sandbox | Run shell commands in an OS sandbox with network blocked by default. |
| --sandbox-network | Allow network access for sandboxed shell commands. |
| --no-notify | Disable completion notifications. |
| --update | Check for and install an update if one is available. |
| --kanban | Open the Kanban app. |
| -v, --verbose | Show more CLI output. |
For data paths and environment settings, see Configuration and storage. For approval and isolation examples, see Project workflows.
Duet CLIDocumentation
Project workflows
First project, approvals, sessions, Git worktrees, and MCP workflows for Duet CLI.
These examples were checked against the source CLI help for Duet CLI 0.0.9. Install the public release first — see Install Duet CLI — before following commands that assume an installed binary.
Start a project
Run the CLI from the repository you want it to inspect. Sign in to Fable first when using the default Fable Gateway provider.
cd /path/to/project
duet login
duet --plan "Map the main packages and propose a safe first change."Plan mode asks the model to outline work. It does not make every later file or shell operation safe by itself. In the interactive session, review each proposed tool action and its diff.
Interactive sessions
duet --tui
fable "Explain the test layout in this repository"
duet --continue
duet --id SESSION_ID
duet history --limit 20The source CLI reports that tool calls require approval by default. The --continue option resumes the latest session for the current working directory; --id resumes a specific session. Those two selectors cannot be combined. Use duet history --help for saved-session operations.
File and terminal work
Duet CLI can inspect project files and use terminal tools as part of a session. Keep the prompt scoped to the repository. Review diffs, shell commands, and outputs before accepting them. A non-interactive prompt does not imply that file or terminal tools are auto-approved.
For an explicit interactive review, start duet --tui. Use --plan to request planning. The default approval behavior is separate from --sandbox, which applies OS sandboxing to shell commands.
Isolated Git work
duet --worktree "Add contract tests for the API client"The CLI creates a detached Git worktree under ~/.fable/worktrees/ and requires Git plus a repository directory. Review the resulting worktree and commit it using your normal Git process. The CLI does not provide a dedicated branch command; use Git when you need named branches.
Separate --worktree runs create separate task directories. This is a workspace isolation option, not a claim that the CLI has a managed parallel-agent scheduler. The top-level help does not list a parallel-agent command.
Shell sandbox
duet --sandbox "Inspect the package scripts and summarize their purpose"
duet --sandbox --sandbox-network "Check the package metadata needed for this change"--sandbox runs shell commands in an OS sandbox with writes limited to the workspace and network blocked by default. --sandbox-network opts into network access for sandboxed shell commands. It does not replace review of the prompt, model output, or other tools.
Tool approval modes
| Option | Source behavior |
|---|---|
| --auto-approve true | Approves every tool call for the run. The default is false. |
| --yolo | Runs unattended and auto-approves tool calls. The help marks it dangerous. |
| --zen | Sends a prompt to the background hub with unattended tool auto-approval. |
| --tui | Opens the interactive terminal UI for sessions. |
Use unattended modes only when the repository and process environment are isolated for that work. --sandbox changes shell execution boundaries; do not assume it sandboxes unrelated external services or credentials.
MCP servers
duet mcp search "filesystem"
duet mcp inspect SERVER_NAME
duet mcp install SERVER_NAME
duet mcp uninstall SERVER_NAMESearch and inspection query the official MCP Registry. Search does not install anything. The install command opens a setup wizard. Read a server's permissions and command before connecting it; registry listing is not a safety review.
Background hub and scheduled tasks
The CLI exposes fable hub for its local hub daemon and fable schedule for scheduled tasks. Their top-level help confirms those entry points, but a hosted Fable scheduler or hosted delivery service is not implied. Run each command's --help in the exact CLI version before changing local task state.
Duet CLIDocumentation
Configuration and storage
Verified Duet CLI paths, environment settings, provider credentials, and account session storage.
This page describes configuration paths and account storage verified in the Duet CLI source CLI. A version 0.0.9 development checkout was used for the command help; the public binary and supported platforms are listed in Install Duet CLI.
Command paths
The current help reports these defaults:
| Option | Default | Purpose |
|---|---|---|
| --config PATH | ~/.fable | CLI configuration directory. |
| --data-dir PATH | ~/.fable/data | Local application data directory. |
| --hooks-dir PATH | ~/.fable/hooks | Additional hook directory. |
Use --config, --data-dir, or --hooks-dir to select a different directory for a run. FABLE_* environment names are canonical; matching TERA_* and CLINE_* names remain compatibility inputs, with FABLE taking precedence.
duet --config /path/to/fable-config --data-dir /path/to/fable-dataThe --data-dir option is also available on duet auth. Avoid sharing a data directory between unrelated operating-system users.
Environment settings
The current source recognizes these Fable environment variables:
| Variable | Behavior |
|---|---|
| FABLE_DIR | CLI configuration directory (default ~/.fable). |
| FABLE_DATA_DIR | Local application data directory (default ~/.fable/data). |
| FABLE_SANDBOX=1 | Enables isolated local state for sandbox mode. |
| FABLE_SANDBOX_DATA_DIR | Selects the isolated state directory for a sandboxed run. |
| FABLE_SANDBOX_NETWORK=1 | Allows network access to shell commands when sandboxing is enabled. |
| FABLE_LOG_PATH | Selects the runtime log file path. |
| FABLE_NO_AUTO_UPDATE=1 | Disables the non-blocking startup update check. |
| FABLE_REDUCED_MOTION=1 | Reduces TUI animation. |
Other runtime settings use the FABLE_* prefix as documented in the CLI README. Matching TERA_* and CLINE_* names remain compatibility inputs for existing installations.
These are implementation settings, not server credentials. Do not put Fable account tokens or provider API keys into shell history or public environment files.
Account sign-in and provider credentials
The duet login command signs in to a Fable Account for the default Fable Gateway provider. The CLI source stores account access and refresh tokens in the operating system credential store, keyed to the selected Fable data path. The session store uses:
- macOS Keychain.
- Linux Secret Service through secret-tool.
- Windows DPAPI scoped to the current user.
The CLI source refuses to silently fall back to plaintext if the secure credential backend is unavailable. The existing compatibility session file is not a plaintext token store.
The duet auth command configures a model provider and is separate from duet login. Use duet auth --help to see the provider flags. Protect the configuration directory and provider credentials according to the provider's own storage behavior.
Move or remove local data
Sign out with duet logout before removing the local Fable account session. Export any history you need before deleting local data. The source CLI offers duet history export SESSION_ID; check duet history export --help for output options. No public uninstaller is available while the package is unpublished.
Changing --data-dir does not move existing history, provider settings, or project files. Copy only the data you intend to retain and keep the original until the new location is verified.
Duet CLIDocumentation
Troubleshooting
Diagnose CLI setup, authentication, gateway availability, usage limits, and local session issues.
Start with duet --help from the exact CLI build in use. The current public release is 0.0.9; install it with the one-line installer.
CLI starts but no model is available
The default provider is Fable Gateway. Sign in with duet login, then check fable account and duet usage. Model access still depends on the server's current entitlement, catalog, quota, and provider runtime.
The protected Preview checked on 6 November 2026 returned 503 for model discovery. A local sign-in or saved CLI session does not prove that hosted inference is available.
If you configured another provider, use duet auth --help and verify its provider id, model id, base URL, and credential with that provider. Provider credentials do not grant a Fable paid entitlement.
Gateway responses
| Response | Meaning | Next step |
|---|---|---|
| 401 | Fable Account session or API key is missing, expired, revoked, or invalid. | Sign in again with duet login. For a server API key, issue a replacement in Fondation Platform. |
| 403 | The account or selected model does not have the required entitlement. | Check fable account and the server's current model catalog. Do not change provider credentials to bypass it. |
| 429 | A rate or usage limit was reached. | Check duet usage and retry after the limit resets or the server-provided retry time. |
| 502 | The model provider rejected the request, timed out, or returned an unusable response. | Retry only after reviewing the provider status and request; repeated calls can spend provider quota. |
| 503 | The server could not verify account, entitlement, catalog, usage, or provider availability. | Treat the request as unavailable. Do not replace it with cached or made-up model output. |
These meanings are the current Fable Gateway contract. They do not promise a response from an unavailable deployment.
Local configuration
duet config
duet doctor
duet doctor log
duet --helpduet doctor diagnoses local configuration. duet doctor log opens the local CLI log. duet doctor fix kills running Duet CLI processes; check for active sessions before using it.
Session recovery
Use --continue for the latest session in the current working directory or --id SESSION_ID for a known session. duet history --limit 20 lists recent saved sessions. --continue and --id cannot be combined.
For a stale account session, run duet logout, then duet login. If the OS credential store cannot be reached, restore access to Keychain, Secret Service, or the current Windows user profile; the CLI will not write the account token into a plaintext file as a fallback.
Update and uninstall status
duet update --check checks for a compatible update without installing it. duet update installs the newer public release when one is available. To remove a global install, delete the installed binary as described in Install Duet CLI. A source checkout run with bun run duet is not a global installation.
If you want to remove local account data, sign out first, export history you want to keep, then remove only the data directory you selected. Removing ~/.fable also removes local settings and history. (An existing ~/.tera directory is reused in place.)
SecurityDocumentation
Security
Credential handling, server-side authorization, model access, and operational boundaries.
Credentials
- Keep
SUPABASE_SECRET_KEY, Stripe secrets, webhook signing secrets, provider tokens, and API keys in server-side Secret variables. Do not send them to browser code, public logs, or client telemetry. - The Supabase publishable key may be used in a browser with Row Level Security enabled. A Supabase secret key bypasses Row Level Security and belongs only in trusted server code. See Supabase API keys.
- A Fondation Platform API key is shown once and stored server-side as a hash. Revoke or replace a key when it is lost; the hash cannot recover the original secret.
- Stripe webhook requests must be verified against the raw request body and the endpoint signing secret. See Stripe signature verification.
Authorization
Every Fable Gateway request revalidates its account identity, API key status, paid entitlement, model permission, and usage limits server-side. User IDs and plan names supplied by clients do not select another account or grant entitlements. Paid access expires at the server-verified paid-through boundary.
Request controls
The gateway enforces method and body validation, bounded message/context sizes, durable request limits, usage reservations, idempotency, and provider timeouts. A 429 or 503 is an explicit denial or unavailable state; clients should not substitute cached balances or invented output.
Privacy boundary
The public API documentation does not promise provider identity, retention, or model-training use without a verified deployment configuration and an approved privacy statement. Avoid sending personal or confidential data unless the account terms and enabled provider's data practices permit it.
Report a security issue
Use the contact details in the Fondation security policy. Do not publish credentials or exploit details in a public issue.
ReferenceDocumentation
Changelog
Public documentation and product availability notes.
This page records public documentation and product availability notes.
23 November 2026
- Reworked the Models section: the documentation now presents Fondation's two models, Lune I and Frontier I, without internal identifiers.
- Removed the evaluations page; model evaluation results will be published once available.
- Removed the API section from the public documentation.
14 November 2026
- Released Duet CLI
0.0.9as the current public release inleonnett/duet-install. Verified on Linux x64 with an anonymous install:duet --versionprints0.0.9. - Documentation is light-only with rounded corners throughout. The CLI version shown in these docs comes from a single setting (
cliVersionin the documentation manifest), so a future release only needs that one value updated.
6 November 2026
- Added the Fondation documentation platform.
- Documented the
fableCLI commands from its source help output.
Versioning
Duet CLI's version is reported by duet version and documented on Install Duet CLI.