Authentication and configuration
Last updated: 2025-01-15
•1 min readAuthentication and Configuration
Set up your CLI for daily use.
Authentication
Browser Login
taskforceai login
Opens your browser to complete authentication.
API Key
For automation, use an API key:
export TASKFORCEAI_API_KEY="your-api-key"
Or add to your shell profile:
echo 'export TASKFORCEAI_API_KEY="your-api-key"' >> ~/.bashrc
Configuration File
Config is stored in ~/.taskforceai/config.json:
{
"defaultModel": "auto",
"theme": "dark",
"historyEnabled": true
}
Configure Settings
# View current config
taskforceai config list
# Set a value
taskforceai config set defaultModel gpt-4
# Reset to defaults
taskforceai config reset
Multiple Profiles
For different accounts:
taskforceai login --profile work
taskforceai --profile work chat