Installation
This guide covers everything you need to know about installing and setting up the A24Z CLI on your system.System Requirements
Before installing A24Z, ensure your system meets these requirements:- Operating System: macOS, Linux, or Windows (WSL recommended)
- Node.js: Version 18.0.0 or higher
- Package Manager: npm 9+ or pnpm 8+
- Disk Space: ~50MB for CLI and dependencies
Installation Methods
Using npm (Recommended)
Install the A24Z CLI globally:Using pnpm
If you prefer pnpm:Using yarn
For yarn users:Verify Installation
After installation, verify that the CLI is accessible:1.0.0).
Check available commands:
Configuration
Initial Setup
After installation, configure the CLI:- Open your default browser
- Navigate to the A24Z authentication page
- Prompt you to log in or sign up
- Store your authentication token locally
Your credentials are stored securely in
~/.a24z/config.json. This file is created automatically and should not be shared.Configuration File
The A24Z CLI stores its configuration in~/.a24z/config.json. Here’s what it contains:
Environment Variables
You can also configure A24Z using environment variables:A24Z_API_KEY- Your API keyA24Z_API_URL- Custom API endpoint (for enterprise deployments)A24Z_ORG_ID- Default organization ID
Installing Tool Integrations
Claude Code
To install observability hooks for Claude Code:- Updates
~/.claude/settings.jsonwith hook configurations - Configures all 9 Claude Code hook types
- Sets up automatic telemetry collection
- Validates the installation
PreToolUse- Before tool executionPostToolUse- After tool executionUserPromptSubmit- When user submits a promptSessionStart- When session beginsSessionEnd- When session endsSubagentStop- When subagent stopsNotification- System notificationsStop- When assistant stopsPreCompact- Before transcript compaction
Gemini CLI
For Gemini CLI integration:Codex
For Codex integration:Updating the CLI
Check for Updates
To check if a new version is available:Update to Latest Version
Update using npm:Update to Specific Version
To install a specific version:Uninstalling
Remove the CLI
To uninstall the A24Z CLI:Clean Up Configuration
To remove configuration files:Remove Tool Hooks
Before uninstalling, you may want to remove tool hooks:We recommend keeping a backup of your tool configuration files before making changes.
Platform-Specific Installation
macOS
On macOS, you might need to usesudo for global installations:
Linux
Most Linux distributions work with the standard npm installation:snap:
Windows (WSL)
For Windows users, we recommend using WSL (Windows Subsystem for Linux):- Install WSL 2
- Install Node.js in your WSL environment
- Follow the Linux installation instructions
Troubleshooting Installation
Permission Denied Errors
If you encounter permission errors:Command Not Found
Ifa24z command is not found after installation:
-
Check your PATH:
-
Find where npm installs global packages:
-
Add the npm bin directory to your PATH:
Network Issues
If installation fails due to network issues:Next Steps
After installation:- Authenticate: Run
a24z loginto connect to your account - Install Hooks: Use
a24z install [tool]for your AI coding tools - Verify: Run
a24z statusto check everything is working - Start Monitoring: Use your AI tools and view metrics on your dashboard