Skip to main content
A full-featured command-line interface for the Dartantic framework. Think of it as curl for AI: scriptable, composable, and ready for shell pipelines.

Installation

Quick Start

Commands

Global Options

Global options must be placed before the command name:
Important: Global options must come before the command:

Chat Command

Send a prompt to an AI agent and receive a streaming response. This is the default command.

Options

Examples

Audio Transcription

Google agents support audio transcription natively. Attach an audio file with @filename syntax and request transcription in your prompt. Plain text transcription:
JSON transcription with word-level timestamps:
Example output:
Note: Audio transcription is currently only supported by Google Gemini models.

OCR (Optical Character Recognition)

Google agents support OCR for extracting text from images. Attach an image containing text with @filename syntax and request text extraction in your prompt. Text extraction from images:
Example output:
Use cases:
  • Extract text from scanned documents
  • Read text from screenshots
  • Process forms and receipts
  • Analyze documents with complex layouts
Note: OCR is supported by Google Gemini, OpenAI, and Anthropic vision models. For specialized OCR with extremely high accuracy, Mistral offers a dedicated OCR model (mistral-ocr-3-25-12) which will be supported once the SDK adds vision capabilities.

Generate Command

Generate media content (images, PDFs) based on a prompt. Supports native image editing by passing existing images as attachments.

Options

Examples

Note: Image editing works by attaching an existing image to the prompt using @filename syntax. Google uses native Imagen editing, while OpenAI and Anthropic use code execution to process the image.

Embeddings Commands

embed create

Create embeddings from text files.
Output format:
Semantic search over embeddings.
Output format:

Models Command

List available models for a provider.
Output:

Settings File

Create ~/.dartantic/settings.yaml to define custom agents and defaults.

Schema

Root level: Agent configuration (agents.<name>): MCP server configuration:

Full Example

Then use them:

Environment Variable Substitution

Use ${VAR_NAME} syntax for environment variables:

Model String Formats

DotPrompt Templates

Use .prompt files for reusable templates with variable substitution:

Template Features

  • YAML frontmatter with --- delimiters
  • model: field overrides the agent’s model
  • input: section defines variable defaults
  • {{variable}} placeholders use Mustache syntax
  • Variables passed via CLI: name=value

Exit Codes

Environment Variables

Agent Resolution Order

  1. CLI --agent flag (highest priority)
  2. Environment variable DARTANTIC_AGENT
  3. Settings file default_agent field
  4. Direct provider name (google, openai, etc.)
  5. ‘google’ (final default)