ai update command updates your AI Runner installation to the latest version from the configured GitHub repository.
Syntax
What Gets Updated
When you runai update, the following are updated:
Fetch Latest Version
Pulls the latest code from the configured GitHub repository (default:
andisearch/airun)Update Scripts
Installs updated scripts to
/usr/local/bin:ai/airun- main commandai-sessions- session listingai-status- configuration status- Legacy
claude-*commands for backward compatibility
Update Libraries
Updates shared libraries in
/usr/local/share/ai-runner/:lib/- core utilities and loadersproviders/- provider implementationstools/- tool integrations
Update Configuration
Updates configuration files in
~/.ai-runner/:models.sh- default model IDs (with prompt before overwriting)banner.sh- banner configuration
Version Checking
AI Runner automatically checks for updates:- Frequency: Once every 24 hours (non-blocking, cache-only)
- Where: Interactive mode startup and
ai-statuscommand - Notification: Shows a notice when a new version is available
Disable Update Checks
To disable automatic update checking:~/.bashrc, ~/.zshrc) to make permanent.
Manual Update
You can also update manually:ai update.
What’s Preserved
The update process never modifies:- API keys and credentials in
~/.ai-runner/secrets.sh - Saved defaults in
~/.ai-runner/defaults.sh - Session data in
~/.ai-runner/sessions/ - Claude configuration in
~/.claude/
Model Configuration Updates
When model defaults change between versions, you’ll be prompted:- Choose Y to update to new model defaults
- Choose n to keep your current model configuration
secrets.sh are always preserved.
Update Source
By default,ai update pulls from:
Version History
View release notes and version history:Check Current Version
Rollback to Previous Version
If an update causes issues:Update Behavior
Active sessions are not affected by updates. You can continue working in open
ai sessions while updating.Troubleshooting Updates
Update fails with 'permission denied'
Update fails with 'permission denied'
The update process needs to write to Or make the directory writable:
/usr/local/bin. Run with sudo or ensure the directory is writable:Update fails with 'git not found'
Update fails with 'git not found'
AI Runner needs git to pull updates. Install git:
Update doesn't show new features
Update doesn't show new features
Verify you’re on the latest version:Check if git pulled successfully:Force reinstall: