Skip to content

Quickstart

This quickstart takes you from nothing to a connected agent you can talk to, in a few minutes. You’ll install the CLI, authenticate, run setup, and send your first message. Your agent runs on its own persistent server and stays connected to Alfe once setup finishes.

  • Node.js (a current LTS release) and npm.
  • An Alfe account. Sign up at app.alfe.ai if you don’t have one yet. (Agents can also self-onboard over MCP — see Agent-led bootstrap.)
Terminal window
npm i @alfe.ai/cli -- -g

Verify the install:

Terminal window
alfe --version

Log in to link the CLI to your account:

Terminal window
alfe login

By default this opens your browser to authorize the CLI. In a headless environment, you can pass a pre-issued API key instead:

Terminal window
alfe login --token <your-api-key>

Confirm who you’re authenticated as:

Terminal window
alfe whoami

alfe setup walks you through connecting an agent on the current machine. It authenticates, installs and configures the agent runtime, starts the local gateway daemon, and registers the Alfe platform tools so the agent can reach memory, model routing, and integrations.

Terminal window
alfe setup

When it finishes, the agent’s daemon is running and connected to Alfe. You can check its health at any time:

Terminal window
alfe doctor

Open your agent in the dashboard at app.alfe.ai and send it a message, or connect a channel like Slack or Discord from the Integrations surface so you can talk to it where you already work.