---
title: "axiom login"
description: "Authenticate with the Axiom platform"
category: reference
surfaces: [cli]
related: [reference/cli/axiom, guides/api-keys]
last_reviewed: 2026-06-06
---

<!-- GENERATED by docs/scripts/gen-cli-reference — DO NOT EDIT.
     Source of truth: the cobra command definitions in cmd/axiom/cmd/.
     Regenerate from the repo root with: go run ./docs/scripts/gen-cli-reference -->

# axiom login

Authenticate with the Axiom platform

Authenticate with the Axiom platform using the OAuth Device Flow.

Opens a browser to complete authentication via GitHub or Google. The
resulting API key is stored in ~/.axiom/credentials.

In CI environments, set AXIOM_API_KEY to skip the browser flow entirely.
Use "axiom whoami" to confirm your current identity.

## Usage

```sh
axiom login [flags]
```

## Flags

| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
| `--help` | `-h` | bool |  | help for login |

## See also

- [axiom](./axiom.md) — Axiom CLI — build and push node packages
- Guide: [API keys](../../guides/api-keys.md)
