Workspace Setup

Create a Locus workspace and configure your CLI with an API key.

Create Your Workspace

  1. Sign up or log in with your email (OTP authentication)

  2. Create a new workspace for your project

circle-info

A workspace maps to a single project or repository. Each workspace has its own tasks, sprints, documents, and API keys.


Generate an API Key

  1. Open your workspace in the dashboard

  2. Go to Settings → API Keys

  3. Click Create API Key

  4. Copy the key — you'll need it for CLI configuration

circle-exclamation

Configure the CLI

Run the interactive setup:

This prompts you for:

Setting
Description
Required

apiKey

Your workspace API key

Yes

apiUrl

API base URL (uses default if empty)

No

provider

AI provider: claude or codex

No

model

Specific model name

No

You can also configure non-interactively:

Verify Your Configuration

This displays your current settings with secrets masked.


Configuration Storage

Settings are stored in .locus/settings.json in your project directory. This file is automatically added to .gitignore by locus init to prevent accidentally committing secrets.

chevron-rightExample settings.json structurehashtag

Workspace Auto-Resolution

You don't need to manually configure a workspaceId. Locus automatically resolves your workspace from the API key. The API key is scoped to a specific workspace, so Locus knows which workspace to use.


Next Steps

Last updated