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

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

1. Install Dexto

Install Dexto globally using npm:

npm install -g dexto

This adds the dexto command to your system, giving you access to the agent runtime.

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.