Skip to main content
Ask questions, pipe in logs, or run production investigations without leaving the terminal.

Quickstart

1

Install

2

Authenticate

Your browser opens for authentication and the CLI selects your default project.
3

Ask

Common workflows

Start a terminal chat with session history and markdown output:

Repository context

Add an .annie.yaml file to a repository when you want every question from that workspace to use the same Anyshift project, metadata, and runbooks:
.annie.yaml
Annie finds the nearest .annie.yaml by walking up from your current directory. Repository settings apply only to that invocation and do not change your global default project. Use project-scoped personal context when a value should follow you across repositories:
These commands manage your personal context for the selected project. They do not edit the repository’s .annie.yaml. Invocation flags take precedence over TUI session context, repository context, and personal project context:
Files are included only when you name them. Annie blocks files outside the repository, unsafe symlinks, binary and oversized files, common secret filenames, private keys, token-like content, and Kubernetes Secret manifests. The limits are 32 KiB per file and 96 KiB across one request. Run annie context preview to check file status without printing file contents.

Structured output

Pass a local JSON Schema when a script or CI job needs a predictable object instead of prose:
service-risk.schema.json
The CLI validates the schema before sending the request. --schema requires --output json and supports JSON Schema Draft 7 and Draft 2020-12 with an object at the root. Remote schema references are rejected.

Conversation history

Resume a previous investigation with its transcript instead of starting over:
Resume state is scoped to the active project. Annie verifies that the conversation belongs to that project before restoring it. annie conversation delete <id> requires confirmation and may be restricted to administrators.

Reference

All non-interactive graph commands support --project <name|uuid> and --output text|json. Run annie graph <command> --help for command-specific flags.Discover the query language without authentication:
See the complete Graph Query Language reference.
JSON output uses the annie.cli/v1 envelope. Natural-language answers are returned under .answer.content, while Graph results are returned under .data.Require a schema-validated answer with:
Manage persistent project context:
Essential commands:Use Tab for command completion, Page Up/Down to scroll, and Ctrl+C to cancel.
IDs accept an eight-character prefix.
For a single command, use --project <name|uuid>.
For local use:
For CI, create an access token in Settings → Access tokens, store it as a secret, and set:
ANNIE_PROJECT_ID is only required when the token can access multiple projects. Use personal tokens locally and shared tokens for team automation. Token authentication cannot perform administrative operations.
In the TUI, use /rate up, /rate down, or /rate hypothesis <n> up|down.
Configuration lives in ~/.annie/config.yaml. Disable anonymous telemetry with:
The CLI also respects NO_COLOR.

Create account

Start using Anyshift

Request a demo

See the CLI in action