跳到主要内容

viben model

Manage AI models, aliases, and model configuration.

Usage​

viben model <subcommand> [options]

Subcommands​

SubcommandDescription
listList available models (supports --provider, --category, --surface filters)
showShow model details
statusShow model availability statistics
set-defaultSet the default model (supports --surface for per-surface defaults)
createCreate a custom model entry
aliasManage model aliases (list, create, remove, resolve)
configManage model-specific configuration (show, set, remove)
providersList providers with available models

Commands​

List Models​

List available models:

# List all models
viben model list

# List models for a specific provider
viben model list --provider anthropic-main

# Filter by category (llm or media)
viben model list --category media

# Filter by surface
viben model list --surface image

# JSON output
viben model list --json

Output (human-readable):

Available Models:
ID Name Provider Category Surface Caps Context Default
claude-4 Claude Opus 4 anthropic-main llm chat vision 200K Yes

Output (JSON):

{
"success": true,
"data": {
"default": "claude-sonnet-4-20250514",
"models": [
{
"id": "claude-opus-4-20250514",
"name": "Claude Opus 4",
"provider": "anthropic-main",
"category": "llm",
"surface": "chat",
"contextLength": 200000
}
]
}
}

Show Model​

Show detailed information about a specific model:

viben model show -n <model>

Options:

OptionDescription
-n <model>Model ID or alias to show details for
--jsonJSON format output

Output (human-readable):

Model: claude-sonnet-4-20250514
Name: Claude Sonnet 4
Provider: anthropic-main
Context Length: 200K
Max Output: 8K
Input Price: $3.00/1M
Output Price: $15.00/1M
Is Default: Yes

Model Status​

Check model availability statistics:

viben model status

Output:

Model Status
Known Models: 45
Providers: anthropic-main, openai-main, google-main
Configured Aliases: 4
Default Model: claude-sonnet-4-20250514

Models by Provider:
anthropic-main: 12 models
openai-main: 8 models
google-main: 5 models

Set Default Model​

# Set global default
viben model set-default -n claude-sonnet-4-20250514

# Set default for a specific surface
viben model set-default -n dall-e-3 --surface image

Create Model​

Create a custom model entry:

viben model create -n my-custom-model \
--provider openai-main \
--display-name "My Custom GPT-4" \
--category llm \
--surface chat \
--context-window 128000 \
--max-output-tokens 4096 \
--capability vision \
--capability tools \
--description "Custom GPT-4 instance" \
-d # set as default

Options:

OptionDescription
-n, --name <model>Model ID (required)
--provider <provider>Provider ID or type (required)
--display-name <name>Human-readable display name
--category <category>Model category: llm or media
--surface <surface>Model surface: chat, image, video, music, speech, sfx
--capability <capability>Capability tag (repeatable): vision, tools, streaming, etc.
--description <description>Model description
--context-window <tokens>Maximum context window size
--max-output-tokens <tokens>Maximum output tokens
-d, --defaultSet as default model

Alias Management​

Model aliases allow you to use short names to reference commonly used models.

List Aliases​

viben model alias list

Create Alias​

viben model alias create -n fast -m claude-3-5-haiku-latest
viben model alias create -n smart -m claude-sonnet-4-20250514

Remove Alias​

viben model alias remove -n fast
# or
viben model alias rm -n fast

Resolve Alias​

viben model alias resolve -n fast

Model Configuration​

View Configuration​

viben model config show -n claude-sonnet-4-20250514

Set Configuration​

viben model config set -n claude-sonnet-4-20250514 \
--temperature 0.7 \
--max-tokens 8192 \
--top-p 0.9 \
--frequency-penalty 0.1 \
--presence-penalty 0.1

Remove Configuration​

viben model config remove -n claude-sonnet-4-20250514
# or
viben model config rm -n claude-sonnet-4-20250514

Configuration File​

Model configuration is stored in ~/.viben/models.yaml:

# ~/.viben/models.yaml
version: 1

default: claude-sonnet-4-20250514

# Model aliases (built-in + custom)
aliases:
fast: claude-3-5-haiku-latest
smart: claude-sonnet-4-20250514
opus: claude-opus-4-20250514

# Model-specific configuration
model_config:
claude-sonnet-4-20250514:
temperature: 0.7
maxTokens: 8192

Note: Fallback chain support has been removed. Use provider-level fallback strategies instead.

Model Categories & Surfaces​

CategorySurfacesDescription
llmchatText generation (CLI, chat, agent)
mediaimageImage generation
mediavideoVideo generation
mediamusicMusic generation
mediaspeechText-to-speech
mediasfxSound effects generation

Error Handling​

Model Not Found​

{
"success": false,
"error": {
"code": "MODEL_NOT_FOUND",
"message": "Model 'unknown-model' not found"
}
}

Alias Already Exists​

{
"success": false,
"error": {
"code": "ALIAS_EXISTS",
"message": "Alias 'fast' already exists (points to 'claude-3-5-haiku-latest')"
}
}