Environment Variables Reference¶
Complete reference for environment variables that configure Devo CLI behavior.
Overview¶
Environment variables override configuration file values and provide temporary configuration changes without modifying ~/.devo/config.json.
AWS Configuration¶
AWS_PROFILE¶
- Description: AWS CLI profile to use (standard AWS SDK variable)
- Default:
default - Example:
AWS_REGION¶
- Description: AWS region for all AWS SDK operations (standard AWS SDK variable)
- Default:
us-east-1 - Example:
Bedrock Configuration¶
BEDROCK_MODEL_ID¶
- Description: AWS Bedrock model ID for AI features
- Default:
us.anthropic.claude-3-7-sonnet-20250219-v1:0 - Valid Values:
us.anthropic.claude-3-7-sonnet-20250219-v1:0(Claude 3.7 Sonnet)us.anthropic.claude-sonnet-4-20250514-v1:0(Claude Sonnet 4)- Example:
BEDROCK_REGION¶
- Description: AWS region for Bedrock API calls (overrides
AWS_REGIONfor Bedrock only) - Default:
us-east-1 - Example:
GitHub Configuration¶
GITHUB_REPO_OWNER¶
- Description: GitHub repository owner or organization
- Default:
edu526 - Example:
GITHUB_REPO_NAME¶
- Description: GitHub repository name
- Default:
devo-cli - Example:
CodeArtifact Configuration¶
CODEARTIFACT_REGION¶
- Description: AWS region for CodeArtifact operations
- Default: Same as
AWS_REGION - Example:
CODEARTIFACT_ACCOUNT_ID¶
- Description: AWS account ID for CodeArtifact authentication
- Default: Value from
codeartifact.account_idin config - Example:
CODEARTIFACT_SSO_URL¶
- Description: AWS SSO start URL for CodeArtifact authentication
- Default: Value from
codeartifact.sso_urlin config - Example:
CODEARTIFACT_REQUIRED_ROLE¶
- Description: Required IAM role name for CodeArtifact operations
- Default:
Developer - Example:
Version Check Configuration¶
DEVO_SKIP_VERSION_CHECK¶
- Description: Disable automatic version checks
- Default:
0(enabled) - Valid Values:
0- Version checks enabled1- Version checks disabled- Example:
Usage Patterns¶
Temporary Override¶
Override for single command:
AWS_REGION=eu-west-1 devo commit
BEDROCK_MODEL_ID=us.anthropic.claude-sonnet-4-20250514-v1:0 devo code-reviewer
Session Override¶
Override for current shell session:
Permanent Override¶
Add to shell profile (~/.bashrc, ~/.zshrc, etc.):
# Add to ~/.bashrc or ~/.zshrc
export AWS_REGION=us-west-2
export AWS_PROFILE=production
export BEDROCK_MODEL_ID=us.anthropic.claude-sonnet-4-20250514-v1:0
Using .env File¶
Create .env file in project root:
# .env
AWS_REGION=us-west-2
AWS_PROFILE=production
BEDROCK_MODEL_ID=us.anthropic.claude-sonnet-4-20250514-v1:0
DEVO_SKIP_VERSION_CHECK=1
Load with:
Configuration Priority¶
Values are resolved in this order (later overrides earlier):
- Default values (hardcoded)
- Configuration file (
~/.devo/config.json) - Environment variables
- Command-line arguments
Example:
# config.json has: aws.region = "us-east-1"
# Environment has: AWS_REGION = "us-west-2"
# Result: Uses us-west-2
devo config get aws.region # Shows: us-west-2
Examples¶
Use Different AWS Profile¶
Use Different Bedrock Model¶
Disable Version Checks¶
Multiple Overrides¶
export AWS_REGION=eu-west-1
export AWS_PROFILE=production
export BEDROCK_MODEL_ID=us.anthropic.claude-sonnet-4-20250514-v1:0
devo commit
Per-Command Override¶
# Use staging profile for commit
AWS_PROFILE=staging devo commit
# Use production profile for code review
AWS_PROFILE=production devo code-reviewer
Debugging¶
Check Current Values¶
# Show all configuration
devo config show
# Check specific value
devo config get aws.region
# Verify environment variable
echo $AWS_REGION
echo $AWS_PROFILE
Test Configuration¶
# Test with environment variable
AWS_REGION=us-west-2 devo config show
# Verify AWS credentials
aws sts get-caller-identity --profile $AWS_PROFILE
Security Considerations¶
- Don't commit .env files - Add to
.gitignore - Use restrictive permissions -
chmod 600 .env - Avoid hardcoding credentials - Use AWS SSO or IAM roles
- Rotate credentials regularly - Update access keys periodically
- Use least privilege - Grant minimum required permissions
See Also¶
- Configuration Reference - Configuration file reference
- Configuration Guide - Configuration usage guide
- AWS Setup - AWS configuration guide