Skip to content
NewNexus 2.0 is here, and it’s open source. Read the launch post

Getting started

Quickstart

Install the CLI, sign in, run Claude Code through Nexus and see what it cost.

View as Markdown

You need curl, a Nexus organization (sign in to Nexus UI with your Google account or email; your first sign-in creates your personal organization), and Claude Code installed. Nexus never installs a coding agent for you:

curl -fsSL https://claude.ai/install.sh | bash

1. Install the CLI

curl -fsSL https://api.nexus.inc/install.sh | bash

The installer downloads the nexus CLI from Nexus Gateway, checks it against its SHA-256 checksum and installs it to ~/.nexus/bin/nexus (set NEXUS_INSTALL_DIR to change the folder). It installs the native binary for your machine when Gateway publishes one. Otherwise it installs the JavaScript CLI, which needs Node.js 22.6 or later. If that folder isn't on your PATH, it prints the line to add. Open a new terminal and check:

nexus --version

2. Sign in

nexus auth login

The CLI shows a one-time code and opens Nexus UI. Check that the code matches, and approve it for your organization. The CLI then has a token of its own: it is yours, lasts 90 days and can be revoked. Codes expire after ten minutes.

nexus auth status    # your organization, you, your role, and whether Gateway accepts your token

3. Add your Anthropic key

Through Nexus Gateway, Claude Code's calls go to Anthropic with your organization's own key. An owner or admin adds it once:

nexus keys add anthropic sk-ant-…

The key is encrypted at rest and used for your organization only. nexus keys list shows which providers have a key.

4. Run Claude Code through Nexus

nexus claude --api

Claude Code starts as usual, with every model call going through Nexus Gateway: reserved against your organization's budget, metered, checked against its policy and attributed to you and to this session. Arguments go to Claude Code unchanged:

nexus claude --api -p "Summarize this repository in five bullet points"

Without --api, nexus claude takes your saved route (nexus agents use). The default is your own Claude plan: Nexus records the session but does not meter it (see Choose a route).

5. See what it cost

nexus spend

You get the budget, what is spent, reserved and remaining (a member gets what is left for them), spend by product and capability (Claude Code's calls show under agents › claude) and the latest calls. Nexus UI shows the same under Usage, and your agent sessions on Overview.

Next