Skip to main content

Installation

This guide will walk you through installing the Dexto CLI and setting up your environment so you can start running agents.

Prerequisites

  • No runtime dependency is required for native install.
  • Node.js >= 20.0.0 is only required if you build from source.

Optional: An LLM API Key (not required for local models)

1. Install Dexto

Install Dexto using the native installer:

# macOS / Linux / WSL
curl -fsSL https://dexto.ai/install | bash

# Windows PowerShell
irm https://dexto.ai/install.ps1 | iex

This adds the dexto command to your system and writes install metadata to ~/.dexto/install.json.

Upgrade

# latest
dexto upgrade

# pinned
dexto upgrade 1.6.8

Uninstall CLI

# default: remove CLI binary only
dexto uninstall

# remove ~/.dexto too
dexto uninstall --purge

PATH Troubleshooting

If you had an older npm global install, dexto upgrade automatically migrates it to native.

If your shell still resolves the wrong binary:

which -a dexto

Remove stale entries and run dexto upgrade again.

2. Run Setup

dexto

This triggers the first-time setup wizard.

  1. Choose setup type → Select "Get started now"
  2. Pick provider → Gemini (free), Groq (fast), or Local
  3. Get API key → Browser opens, or paste existing key
  4. Confirm mode → Press Enter for Terminal (default)

Done! You're ready to chat.

Custom Setup

  1. Choose "Choose my own provider"
  2. Browse providers → OpenAI, Anthropic, local models, gateways
  3. Select model → Pick from available models
  4. Configure API key → Browser, paste, or skip
  5. Choose default mode → Terminal, Browser, or API Server

Supported Providers

CategoryProviders
Free CloudGoogle Gemini, Groq
Local (No API key)Local Models, Ollama (requires Ollama installed)
CloudOpenAI, Anthropic, xAI, Cohere
GatewaysOpenRouter, Glama, LiteLLM, OpenAI-Compatible
EnterpriseGoogle Vertex AI, AWS Bedrock

Modes Explained

ModeFlagDescriptionBest For
Terminal--mode cliInteractive CLI in your terminalQuick tasks, coding
Browser--mode webWeb UI at localhost:3000Long conversations
API Server--mode serverREST API on port 3001Integrations, apps

3. Start Using Dexto

After setup, Dexto launches in your selected default mode.

# Run with your default mode
dexto

# Override with a specific mode
dexto --mode cli
dexto --mode web
dexto --mode server

# One-shot commands (auto-uses CLI mode)
dexto "say hello"
dexto -p "list files in this directory"

Reconfigure Anytime

# Open settings menu
dexto setup

# Force re-run full setup
dexto setup --force

Non-Interactive Setup

For automation or CI environments:

dexto setup --provider google --model gemini-2.5-pro
dexto setup --provider ollama --model llama3.2
dexto setup --quick-start
CLI reference

For detailed information about all CLI commands, flags, and advanced usage patterns, check out our comprehensive CLI Guide.

Next Step: Build Your First Agent

Now that Dexto is installed, you're ready to create your first custom agent with its own configuration and capabilities.

Continue to the Build Your First Agent Tutorial to learn how to build agents using declarative configuration.