Configuration
Learn how to configure and customize A24Z to fit your workflow and organizational needs.Configuration File
A24Z stores its configuration in~/.a24z/config.json. This file is automatically created when you run a24z login.
Location
Structure
Fields
| Field | Description | Required |
|---|---|---|
apiKey | Your A24Z API key | Yes |
organizationId | Active organization ID | Yes |
organizationName | Active organization name | Yes |
apiUrl | A24Z API endpoint | Yes |
activeOrganization | Currently selected organization | Yes |
debug | Enable debug logging | No |
Environment Variables
You can override configuration using environment variables:Available Variables
Precedence
Environment variables take precedence over the configuration file:- Environment variables (highest priority)
- Configuration file (
~/.a24z/config.json) - Default values (lowest priority)
Tool-Specific Configuration
Claude Code
A24Z integrates with Claude Code through~/.claude/settings.json.
Example configuration:
The
a24z install claude-code command automatically configures all hooks. You typically don’t need to edit this manually.Gemini CLI
Configuration for Gemini CLI is stored in~/.gemini/config.json.
Codex
Codex configuration is managed through~/.codex/settings.json.
Organization Management
List Organizations
View all organizations you belong to:Switch Organizations
Switch to a different organization:View Current Organization
Check which organization is currently active:Debug Mode
Enable debug mode for troubleshooting:Via Configuration File
Edit~/.a24z/config.json:
Via Environment Variable
Debug Output
When debug mode is enabled, you’ll see detailed logs:Advanced Configuration
Custom API Endpoint
For self-hosted or enterprise deployments:Proxy Configuration
If you’re behind a corporate proxy:Custom Hook Configuration
For advanced users who want to customize hook behavior:Security Best Practices
Protect Your Configuration
Your configuration file contains sensitive credentials:API Key Management
- Rotate keys regularly - Generate new API keys quarterly
- Use separate keys per environment - Different keys for dev/staging/prod
- Revoke compromised keys immediately - Use the dashboard to revoke and regenerate
Environment-Specific Configuration
For different environments:Resetting Configuration
Reset to Defaults
To reset your configuration:Clear Cached Data
Reinstall Hooks
To reinstall tool hooks:Configuration Examples
Minimal Configuration
Full Configuration
Troubleshooting Configuration
Invalid Configuration
If you see “Invalid configuration” errors:-
Validate JSON syntax:
- Check for required fields
-
Verify API key format starts with
sk_live_orsk_test_
Configuration Not Loading
If your configuration isn’t being loaded:-
Check file permissions:
-
Verify file location:
-
Check environment variables: