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:
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:
- Extract text from scanned documents
- Read text from screenshots
- Process forms and receipts
- Analyze documents with complex layouts
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
@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.embed search
Semantic search over embeddings.Models Command
List available models for a provider.Settings File
Create~/.dartantic/settings.yaml to define custom agents and defaults.
Schema
Root level:
Agent configuration (agents.<name>):
MCP server configuration:
Full Example
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 modelinput:section defines variable defaults{{variable}}placeholders use Mustache syntax- Variables passed via CLI:
name=value
Exit Codes
Environment Variables
Agent Resolution Order
- CLI
--agentflag (highest priority) - Environment variable
DARTANTIC_AGENT - Settings file
default_agentfield - Direct provider name (google, openai, etc.)
- ‘google’ (final default)

