Skip to content

CLI Installation

Terminal window
bun add -g @llmist/cli

Or run directly without installing:

Terminal window
bunx llmist --help

Verify the installation:

Terminal window
llmist --version
  1. Set up API keys

    Set at least one provider API key. See Environment Variables for all options.

    Terminal window
    export ANTHROPIC_API_KEY=sk-ant-...
    # or OPENAI_API_KEY, GEMINI_API_KEY
  2. Initialize configuration (optional)

    Create a configuration file for custom commands:

    Terminal window
    llmist init

    This creates ~/.llmist/cli.toml with default settings.

  3. Verify setup

    Test with a simple completion:

    Terminal window
    llmist complete "Hello, world!"

The configuration file at ~/.llmist/cli.toml supports:

  • Default model and options for each command
  • Custom commands with pre-defined prompts
  • Prompt templates for reusable content
  • Gadget approval rules for security

Example:

~/.llmist/cli.toml
[global]
log-level = "warn"
[complete]
model = "sonnet"
temperature = 0.7
[agent]
model = "gpt-5"
max-iterations = 10
tui = true
# Custom command
[code-review]
inherit = "agent"
system = "You are a code reviewer. Analyze the provided code for bugs, security issues, and best practices."

Now that you have the CLI installed, try the Quick Start to run your first agent!