Skip to content

Composite Commands Reference

Composite commands let you chain multiple Askimo actions into a single command-line invocation — extending their power for automation, scripting, and seamless workflow execution.

Terminal window
askimo --command1 [args] --command2 [args] --command3 [args] ...
Terminal window
# Configure everything at once
askimo --set-provider openai \
--set-param api_key sk-abc123 \
--set-param model gpt-4o \
--config
Terminal window
# Switch to Ollama with custom settings
askimo --set-provider ollama \
--set-param model llama2 \
--set-param temperature 0.7
Terminal window
# Fine-tune model parameters
askimo --set-param temperature 0.8 \
--set-param max_tokens 2000 \
--set-param top_p 0.95
Terminal window
# Get overview of available resources
askimo --providers --models --tools
# Check configuration and version
askimo --config --version
Terminal window
# Set and verify in one command
askimo --set-provider openai --set-param model gpt-4o --config
CommandArgumentsExample
--set-providerprovider_name--set-provider openai
--set-paramkey value--set-param model gpt-4o
--confignone--config
--providersnone--providers
--modelsnone--models
--paramsoptional: —list--params --list
--toolsnone--tools
--versionnone--version
--helpnone--help
--create-recipename, -f file--create-recipe -f file.yml
--recipesnone--recipes
--delete-recipename or —all--delete-recipe old

DO: Order commands logically (provider before parameters)

Terminal window
askimo --set-provider openai --set-param model gpt-4o

DO: End with verification commands

Terminal window
askimo --set-param temperature 0.7 --config

DO: Use the same command multiple times

Terminal window
askimo --set-param key1 val1 --set-param key2 val2 --set-param key3 val3

⚠️ AVOID: Mixing interactive and non-interactive modes

Terminal window
# ❌ Won't work - :clear is interactive-only
askimo --config :clear --set-provider openai

Create convenient aliases for common combinations:

Terminal window
# In your ~/.zshrc or ~/.bashrc
alias askimo-gpt4='askimo --set-provider openai --set-param model gpt-4o'
alias askimo-claude='askimo --set-provider anthropic --set-param model claude-3-opus'
alias askimo-local='askimo --set-provider ollama --set-param model llama2'
alias askimo-info='askimo --version --config --providers'

Usage:

Terminal window
$ askimo-gpt4 --config
$ askimo-local --models
$ askimo-info
#!/bin/bash
# setup-askimo-env.sh
PROVIDER="${1:-openai}"
MODEL="${2:-gpt-4o}"
API_KEY="${OPENAI_API_KEY}"
askimo --set-provider "$PROVIDER" \
--set-param api_key "$API_KEY" \
--set-param model "$MODEL" \
--config
echo "✅ Askimo configured: $PROVIDER with $MODEL"

Usage:

Terminal window
$ ./setup-askimo-env.sh openai gpt-4o
$ ./setup-askimo-env.sh ollama llama2