Skip to main content

a24z login

Authenticate with your A24Z account and store credentials locally.

Usage

a24z login

What It Does

  1. Opens your default browser
  2. Navigates to the A24Z authentication page
  3. Prompts you to log in or sign up
  4. Receives authentication token
  5. Stores token in ~/.a24z/config.json
  6. Configures your default organization

Example

$ a24z login

Opening browser for authentication...
 Successfully authenticated as [email protected]
 Organization: Acme Corp
 Configuration saved to ~/.a24z/config.json

You're ready to go! Run 'a24z install claude-code' to get started.

Authentication Flow

Configuration Stored

After successful login, these values are stored:
{
  "apiKey": "sk_live_...",
  "organizationId": "org_...",
  "organizationName": "Acme Corp",
  "apiUrl": "https://api.a24z.ai"
}

Options

--org [name]

Specify organization during login:
a24z login --org "Acme Corp"

--token [token]

Use a pre-existing API token (for automation):
a24z login --token sk_live_your_token_here
Never commit tokens to version control or share them publicly.

--api-url [url]

Use a custom API endpoint (for enterprise deployments):
a24z login --api-url https://a24z.your-company.com

Troubleshooting

Browser Doesn’t Open

If the browser doesn’t open automatically:
  1. Copy the URL shown in the terminal
  2. Open it manually in your browser
  3. Complete authentication
  4. Return to the terminal
$ a24z login

Unable to open browser automatically.
Please visit: https://app.a24z.ai/auth?token=abc123

Waiting for authentication...

Authentication Failed

If authentication fails:
  1. Check your internet connection
  2. Verify your account exists at app.a24z.ai
  3. Try again with a24z login
  4. Contact support if the issue persists

Multiple Organizations

If you belong to multiple organizations, you’ll be prompted to choose:
$ a24z login

 Authenticated as [email protected]

You belong to multiple organizations:
1. Acme Corp
2. Beta Testers
3. Personal

Select organization (1-3): 1

 Using organization: Acme Corp

Security

Where Credentials Are Stored

Credentials are stored in:
~/.a24z/config.json
This file is created with secure permissions (600).

Protecting Your Credentials

# Ensure proper permissions
chmod 600 ~/.a24z/config.json

# Never commit to git
echo ".a24z/" >> ~/.gitignore

Revoking Access

To revoke access:
  1. Go to app.a24z.ai/settings/api-keys
  2. Find your CLI key
  3. Click “Revoke”
  4. Run a24z login again to get a new key

Re-authentication

To re-authenticate (e.g., after revoking a key):
# Remove old config
rm ~/.a24z/config.json

# Login again
a24z login
Or just run a24z login - it will overwrite existing credentials.

Automation

For CI/CD and automation, use token-based authentication:
# Set as environment variable
export A24Z_API_KEY=sk_live_your_token_here

# Or use --token flag
a24z login --token $A24Z_API_KEY

Next Steps

After logging in:
1

Install Tool Hooks

a24z install claude-code
2

Verify Configuration

a24z status
3

Start Using Your Tools

Use Claude Code or other AI tools normally
4

View Your Dashboard

  • a24z org list - List all organizations
  • a24z org switch - Switch organizations
  • a24z status - Check authentication status

See Also