AI Model Providers
Connect Autohand to your preferred AI models. Use cloud APIs or run models locally on your own hardware.
What is the Autohand AI model providers integration?
Autohand model-provider integrations connect the coding agent to hosted APIs or local inference runtimes. You can choose the provider and model explicitly, keep credentials outside source control, and change runtimes without changing the task workflow.
| Status | Available; support varies by provider |
| Requires | Cloud provider credentials for hosted APIs, or a supported local runtime and model files. |
| Configure with | Choose a provider and model with the Autohand Code CLI, /model, or your Autohand configuration file, then set the credential or endpoint named in the provider guide. |
| Best for | Selecting inference by capability, deployment environment, privacy, or cost. |
Overview
Autohand separates the CLI interface from the AI model provider. This means you can switch between different models and providers without changing how you work. Whether you prefer cloud-hosted models or local inference, Autohand adapts to your needs.
You have two main options:
- Cloud providers - Access powerful models via API with no hardware requirements
- Local providers - Run models on your own hardware through a local server
Cloud providers
Cloud providers offer access to the most capable models without requiring powerful hardware. Your prompts are sent to remote servers for processing.
OpenRouter · Recommended
Access 200+ models from Anthropic, OpenAI, Google, and more through a single API. Automatic fallbacks and cost optimization included.
- Claude, GPT-4, Gemini, Llama, and more
- Single API key for all providers
- Automatic model fallback
- Pay-per-use pricing
OpenAI
Direct access to OpenAI’s GPT-5 family with an API key or a ChatGPT account sign-in.
- GPT-5.x models (default
gpt-5.4) - API key or ChatGPT account sign-in
- Configurable reasoning effort
- Function calling support
Anthropic
Direct access to Claude models through Anthropic’s native Messages API, with model-aware thinking, effort, and automatic prompt caching.
- Claude Sonnet 5, Opus 5, and Fable 5
- Native tool use, images, and structured output
- Automatic prompt caching
- API-key authentication
AWS Bedrock · Enterprise
Run Autohand through Bedrock Converse or Bedrock’s OpenAI-compatible endpoints. Designed for AWS credential chains, profiles, private endpoints, and model access controls.
- Converse, Chat Completions, and Responses modes
- AWS credentials, SSO profiles, IAM roles, or Bedrock API keys
- Inference profiles and ARN model IDs
- Regional and private VPC endpoints
DeepSeek
Direct access to DeepSeek V4 models through an OpenAI-compatible API. A strong choice for coding, reasoning, and cost-sensitive engineering workflows.
- DeepSeek V4 Flash and V4 Pro
- OpenAI-compatible chat completions
- Fast coding and reasoning workflows
- Simple API-key setup
xAI Grok
Access xAI’s Grok models with real-time knowledge and advanced reasoning. Built for developers who want cutting-edge AI assistance.
- Grok-2 and Grok-2 mini
- Real-time knowledge from X data
- 128K context window
- Vision capabilities
Z.ai
Use GLM-family models through Z.ai’s OpenAI-compatible API for high-throughput coding and agentic workflows.
- GLM coding and reasoning models
- OpenAI-compatible API surface
- High-performance inference
- API-key authentication
Sakana AI
Use Fugu’s multi-agent orchestration models through Sakana AI’s OpenAI-compatible API for complex reasoning and long-horizon coding tasks.
- Fugu and Fugu Ultra orchestration models
- OpenAI-compatible API surface
- 1M token context window
- API-key authentication
Cerebras · Fastest
Lightning-fast inference at over 2000 tokens per second. Powered by the world’s largest AI chip for near-instant responses.
- Llama 3.1 8B and 70B models
- 2000+ tokens per second
- 128K context window
- Competitive pricing
NVIDIA
Connect to NVIDIA-hosted models through NVIDIA’s OpenAI-compatible inference endpoint, including DeepSeek, Mistral, and NVIDIA model families.
- NVIDIA-hosted model catalog
- OpenAI-compatible chat completions
- GPU-backed inference infrastructure
- Good fit for enterprise GPU stacks
LLMGateway · Enterprise
Enterprise AI gateway with unified API access to multiple providers. Smart routing, caching, and observability for production applications.
- Multi-provider access
- Automatic failover
- Response caching
- Cost optimization
Azure AI Foundry · Enterprise
Enterprise-grade AI models with Azure security and compliance. Access OpenAI, Llama, and Mistral through Azure infrastructure.
- GPT-4o, Llama, Mistral models
- API Key, Entra ID, and Managed Identity auth
- Regional data residency
- Azure’s own compliance certifications for the Azure platform (see Microsoft’s compliance documentation)
GCP Vertex AI · Enterprise
Google’s Gemini models and open-source alternatives through Vertex AI. Enterprise infrastructure with Google Cloud security.
- Gemini 1.5 Pro, 2.0 Flash
- 2 million token context
- Model Garden open-source models
- Google Cloud IAM
Local providers
Local providers run AI models on your own hardware. Autohand sends model requests to the local server you run instead of a cloud API.
Ollama · Easy setup
The simplest way to run local models. One-command installation with automatic GPU detection on macOS, Linux, and Windows.
- Simple installation and model management
- Cross-platform support
- Automatic GPU acceleration
- Large model library
MLX · Apple Silicon
Apple’s machine learning framework optimized for M1, M2, M3, and M4 chips. Native Metal acceleration for exceptional performance.
- Native Apple Silicon optimization
- Unified memory efficiency
- Metal GPU acceleration
- macOS only
llama.cpp · Advanced
High-performance C++ inference engine. Maximum flexibility and control for power users who want to fine-tune every parameter.
- Maximum performance potential
- GGUF model format
- Extensive configuration options
- Cross-platform support
Choosing a provider
Select a provider based on your priorities:
| Priority | Recommended Provider |
|---|---|
| Best model quality | OpenRouter, OpenAI, or Anthropic |
| Claude models on your own Anthropic account | Anthropic |
| Fastest inference | Cerebras (2000+ tokens/sec) |
| AWS enterprise deployment | AWS Bedrock |
| Enterprise compliance | AWS Bedrock, Azure AI Foundry, or GCP Vertex AI |
| Long context (2M tokens) | GCP Vertex AI (Gemini) |
| Multi-provider management | LLMGateway |
| Cost-sensitive coding models | DeepSeek or Z.ai |
| Multi-agent orchestration | Sakana AI |
| NVIDIA-hosted inference | NVIDIA |
| Real-time knowledge | xAI Grok |
| Models on your own hardware | Ollama, MLX, or llama.cpp |
| No API costs | Any local provider |
| Apple Silicon performance | MLX |
Switching providers
Switch between providers at any time using the CLI or configuration file.
Using CLI flags
# Use OpenRouter
autohand --provider openrouter --model anthropic/claude-sonnet-5
# Use Anthropic
autohand --provider anthropic --model claude-sonnet-5
# Use AWS Bedrock
AWS_PROFILE=enterprise-prod autohand --provider bedrock --model us.anthropic.claude-3-5-sonnet-20241022-v2:0
# Use DeepSeek
autohand --provider deepseek --model deepseek-v4-flash
# Use Ollama
autohand --provider ollama --model codellama:13b
# Use MLX
autohand --provider mlx --model codellama-7b-instruct
# Use llama.cpp
autohand --provider llamacpp --model codellama-7b
Using configuration
Set your default provider in ~/.autohand/config.json:
{
"provider": "openrouter",
"openrouter": {
"apiKey": "sk-or-v1-xxxxxxxxxxxx",
"model": "anthropic/claude-sonnet-5"
}
}
The model belongs inside the provider block. The CLI uses apiKey as written and does not expand ${VAR} placeholders or read provider key variables such as OPENROUTER_API_KEY.
During a session
Switch models without restarting:
# Open the model picker to switch model or provider
# (/model takes no arguments; enterprise providers such as Bedrock
# are configured from the same picker)
/model
Custom providers
Autohand Code CLI v0.9.2 and later can connect to any endpoint that implements the OpenAI-compatible API, such as a company gateway or a self-hosted inference server.
- Run
/modelin a session. - Scroll to the Custom providers section and choose New provider….
- Enter a display name, the OpenAI-compatible base URL, whether the endpoint needs an API key, the model ID, and an optional context window and reasoning effort.
Autohand checks the endpoint’s /models API before saving, then stores the provider under customProviders in your config and selects it as custom:<id>:
{
"provider": "custom:company-gateway",
"customProviders": {
"company-gateway": {
"id": "company-gateway",
"displayName": "Company Gateway",
"apiFormat": "openai-compatible",
"baseUrl": "https://models.example.com/v1",
"apiKeyRequired": true,
"model": "company-code"
}
}
}
Configured custom providers appear in their own section of /model, where you can change their settings or remove them. See Custom OpenAI-compatible providers for every field.
Provider comparison
Cloud providers
| Provider | Best for | Authentication | API style |
|---|---|---|---|
| OpenRouter | Broad model access | API key | OpenAI-compatible |
| OpenAI | Direct OpenAI models | API key or ChatGPT auth | OpenAI native |
| Anthropic | Direct Claude models | API key | Anthropic Messages API |
| AWS Bedrock | AWS enterprise workloads | AWS credentials/profile/IAM or Bedrock API key | Converse and OpenAI-compatible |
| DeepSeek | Coding and reasoning value | API key | OpenAI-compatible |
| xAI Grok | Grok models | API key | OpenAI-compatible |
| Z.ai | GLM-family inference | API key | OpenAI-compatible |
| Sakana AI | Multi-agent orchestration | API key | OpenAI-compatible |
| Cerebras | Low-latency inference | API key | OpenAI-compatible |
| NVIDIA | GPU-hosted model catalog | API key | OpenAI-compatible |
| Azure AI Foundry | Azure enterprise deployments | API key, Entra ID, or Managed Identity | Azure OpenAI |
| GCP Vertex AI | Google Cloud and Gemini | Google Cloud access token | Vertex AI OpenAPI endpoint |
Local providers
| Feature | Ollama | MLX | llama.cpp |
|---|---|---|---|
| Setup difficulty | Easy | Medium | Advanced |
| Model quality | Good | Good | Good |
| Cost | Free | Free | Free |
| macOS | Yes | Apple Silicon | Yes |
| Linux | Yes | No | Yes |
| Windows | Yes | No | Yes |
How do I configure the Autohand model-provider layer integration?
Choose a provider and model with the Autohand Code CLI, /model, or your Autohand configuration file, then set the credential or endpoint named in the provider guide.
What does the Autohand model-provider layer integration require?
Cloud provider credentials for hosted APIs, or a supported local runtime and model files.
What limitations should I know about?
Model IDs, context limits, pricing, quotas, and regional access are provider-controlled and can change independently of Autohand.