Skip to content

These docs describe the next meetsoma core release (planned, coming soon). Today you install the Soma beta (0.42), where some commands and screens differ. Roadmap

Getting Started

Install meetsoma core, run your first session with Soma, understand the basics.

npm i -g meetsoma → cd your-project → soma. First run creates .soma/ and discovers identity. /exhale saves state + writes a preload. soma inhale starts fresh with that preload loaded. /breathe rotates mid-session. /pin keeps content hot, /kill drops it cold. soma -c resumes with full conversation history.

Install

npm install -g meetsoma

Permission error? On Linux and many macOS setups a global install writes to a root-owned directory and fails with EACCES. Point npm at your home directory instead of using sudo:

mkdir -p ~/.npm-global
npm config set prefix ~/.npm-global
# use ~/.zshrc instead if you run zsh
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g meetsoma

What soma --version reports. The meetsoma package on npm is a thin launcher and carries its own version number; the agent runtime it installs is versioned separately and is usually ahead. So soma --version prints both, and the CLI number being lower than the one in these docs is expected:

σ  Soma v0.50.0      ← the runtime, what the docs describe
   CLI v0.31.0       ← the npm launcher

Already have Soma installed? See Updating for npm install -g meetsoma@latest && soma update.

Set Up a Provider

Soma needs an AI provider to work. The fastest option:

export ANTHROPIC_API_KEY=sk-ant-...

Add this to your shell profile (~/.zshrc or ~/.bashrc) to persist it.

Other providers: Soma supports 23 providers including OpenAI, Google Gemini, Ollama, GitHub Copilot, and more. See Models & Providers for the full setup guide.

No API key? Free options exist:

  • Use /login with Google Gemini CLI or Google Antigravity (free with any Google account)
  • Use GitHub Copilot if you have a subscription
  • Run local models via Ollama (free, no API key needed - see Custom Providers)

First Run

cd your-project
soma

On first run, Soma will ask to create a .soma/ directory. Say yes.

Installing the runtime first. On a machine that has never run Soma, the very first command downloads the agent runtime (a few hundred MB) and stops there — it does not also scaffold your project. Run it once more to create .soma/:

soma init     # downloads the runtime  → "Soma is installed!"
soma init     # scaffolds this project → "🌱 Planted."

You only do this once per machine; in later projects a single soma init is enough.

Note: Subsequent startups may show a short preflight prompt if a Soma update is available — (c)ontinue / (u)pdate now / (s)kip this version. The check is cached + read-only at boot, so it costs nothing. See Troubleshooting → Startup Prompts for full UX details.

Smart init detects your project automatically and tailors the setup:

What’s DetectedHowEffect
Parent .soma/Walks up filesystemInherits identity, protocols, muscles, tools
CLAUDE.mdChecks project rootNotes existing project instructions (no conflict)
Package managerLooks for lockfiles (pnpm-lock.yaml, package-lock.json, yarn.lock)Sets preference in identity
Language/frameworkScans for tsconfig.json, Cargo.toml, go.mod, pyproject.toml, etc.Tailors identity and suggests relevant protocols
Monorepo signalsDetects pnpm-workspace.yaml, multiple package.json, etc.Suggests parent-child setup

The detected context shapes Soma’s initial identity at body/soul.md. You can always edit it afterward — or split into body/voice.md, body/journal.md etc. as your identity grows.

Session Modes

Fresh Session

soma

Starts fresh. Runs the boot sequence: identity, protocols, muscles, scripts, git context. No preload is loaded by default (preload.autoInject: false). Use soma inhale when you want to load your preload explicitly.

soma inhale

Starts a fresh session and loads the most recent preload - the briefing your last session wrote during /exhale. This is the recommended way to continue a project:

  1. /exhale at end of session → writes preload
  2. Review, reflect, update the preload if needed
  3. soma inhale → fresh context with your curated preload

The difference from plain soma: soma inhale is intentional. You’re saying “I’ve prepared the preload, load it now.” Plain soma does not load a preload — preload.autoInject defaults to false, so you get a clean slate until you ask for one.

Resume Full Session

soma -c

Reopens the last session with full conversation history preserved - same context, same thread. No new boot sequence. Best for short breaks (lunch, meeting) where you want to jump right back in.

Select a Session

soma -r

Pick from previous sessions to resume.

The Difference

CommandContextMemoryBest for
somaFreshNo preload (default autoInject: false)Quick starts, new work
soma inhaleFreshLoads the preload soma ranks firstDaily continuation, one lane
soma preload → soma preload <#>FreshLoads the preload you pick from a numbered listSeveral lanes live — choose which work to continue
soma -cFull historyComplete conversationShort breaks

Commands

CommandWhat it does
/breatheSave state + rotate into fresh session
/exhale ["note"]Save state, write preload, session ends. Optional: text after /exhale becomes a ⚠️ USER NOTE directing the agent — scope this wrap or pass directives forward. (v0.28.1)
/restDisable keepalive + exhale - for when you’re done for the night
/inhaleReset session and load preload — fresh start with your most recent preload
/pin <name>Pin a protocol/muscle to hot (stays loaded)
/kill <name>Kill a protocol/muscle (drops to cold)
/keepaliveToggle cache keepalive on/off (or check status)
/statusShow session stats - context %, cache, keepalive, turns, uptime
/preloadList available preload files
/soma statusShow memory status (identity, preload, muscles, protocols)
/soma initCreate .soma/ in current directory
/soma promptPreview compiled system prompt with token estimate

The .soma/ Directory

Created by soma init or on first run:

.soma/
├── settings.json            ← configurable thresholds
├── state.json               ← heat state (auto-managed, gitignored)
├── STATE.md                 ← project architecture snapshot
│
├── body/                    ← structured identity templates
│   ├── soul.md              ← who Soma is in this project
│   ├── voice.md             ← how Soma communicates
│   ├── _mind.md             ← system prompt template
│   └── _memory.md           ← preload template
│
├── amps/                    ← the AMPS content system
│   ├── automations/         ← triggered actions
│   ├── muscles/             ← learned patterns
│   ├── protocols/           ← behavioral rules (24 ship by default)
│   └── scripts/             ← developer tools (12 seeded on init)
│       ├── soma-code.sh     ← codebase navigator
│       ├── soma-reflect.sh  ← session pattern mining
│       ├── soma-focus.sh    ← session priming
│       └── commands/        ← drop-in /soma commands
│
├── memory/                  ← temporal state
│   ├── preloads/            ← session continuations
│   └── sessions/            ← per-session work logs
│
└── skills/                  ← knowledge sets (SKILL.md format)

Run soma --help scripts to see what’s installed with descriptions.

What’s Private vs Public

If you’re using Soma in a public repo:

  • Ships with repo: .soma/amps/protocols/, .soma/amps/scripts/, .soma/skills/, .soma/body/
  • Gitignored (private): .soma/state.json, .soma/memory/, .soma/debug/, .soma/secrets/

Identity and templates ship. Session data doesn’t.

Switching Models

Press Ctrl+P during a session to cycle models, or use /model to pick from a searchable list.

From the command line:

soma --model gpt-4o              # start with a specific model
soma --model sonnet:high         # with thinking level
soma --models sonnet,haiku,gpt-4o  # limit cycling to these
soma --list-models               # see all available

See Models & Providers for the full guide - including custom providers, Ollama setup, OAuth login, and API key management.

Script Commands

Soma ships with developer tools you can run from your terminal:

# Map a file's structure (functions, classes, exports)
soma code map src/App.tsx

# Find a pattern across the codebase
soma code find "useState" src/

# Trace a concept through memory and code
soma seam authentication

# Prime the next session for a topic
soma focus deployment

Scripts are discovered automatically — drop any soma-<name>.sh into .soma/amps/scripts/ and it becomes soma <name>. Install more from the hub with soma hub install script <name>.

See Commands for the full reference.

Connect to Somaverse

Somaverse gives your agent a visual workspace in the browser — a tiling desktop of plugin panes that Soma can see, control, and interact with.

soma login start

This creates a pairing code, opens your browser to somaverse.ai, and waits for you to enter the code. (soma login with no arguments only reports pairing status — start is what begins a pairing.) Once paired, your device key is saved to ~/.soma/device-key and Soma auto-connects on every future session.

What you get:

  • 🖥️ 28 workspace tools — Soma sees your panes, sends commands, takes snapshots, manages layout
  • 🌐 Remote access — control your workspace from anywhere, even with the browser tab minimized
  • 🔒 Your data stays local — Somaverse is a relay, not storage. Everything flows through to your machine
  • 🧩 33 plugins — chat, terminal, files, editor, browser, voice, graph, and more

How it works:

Your browser (somaverse.ai)
  ↕ secure WebSocket
Somaverse hub (relay — routes messages, stores nothing)
  ↕ secure WebSocket  
Your machine (soma agent — does the actual work)

The hub never sees your data as data — it’s just passing messages. Your files, conversations, API keys, and graph all stay on your machine.

See How It Works for the architecture deep-dive.

Tips

  • Let identity grow - don’t pre-write it. Let Soma discover who it becomes through your work.
  • Trust the breath - don’t worry about context limits. /breathe rotates seamlessly. /exhale when you’re done.
  • Daily workflow — /exhale at end of session, review the preload, soma inhale next morning.
  • Explore commands - run soma --help for all CLI commands, soma --help scripts for installed tools, soma --help commands for the full reference.
  • Switch models freely - use /model or Ctrl+P mid-session. See Models & Providers.
  • Tune settings - everything is configurable: boot steps, heat thresholds, context warnings. See Configuration.
  • Extend Soma — write skills, extensions, or custom model providers. See Extending.
  • Something broken? — check Troubleshooting for common issues and fixes.