Prerequisites
- Node.js 18+: The CLI requires Node.js version 18 or higher
- npm: Comes bundled with Node.js
- AI Agent Platform: One or more of:
Install the CLI
Global Installation (Recommended)
Install the SessionBase CLI globally to access it from anywhere:sessionbase
- Main CLI interfacesessionbase-mcp
- MCP server for AI platforms
Verify Installation
Confirm the installation was successful:sb
- Shortcut for sessionbase
Authentication
After installation, authenticate using:- Open your browser to the SessionBase login page
- Allow you to sign in with GitHub or Google
- Provide an authentication token to copy into your terminal
Manual Token Authentication
If you are already logged in to SessionBase in your browser, you can access your authentication token at https://www.sessionbase.ai/settings and provide the token directly:Verify Authentication
Check that you’re logged in successfully:Next Steps
The SessionBase CLI is intended for consumption by AI agents via the SessionBase MCP server. While you can use the CLI directly, we recommend using the SessionBase MCP server directly from your AI agent of choice. This allows you to push sessions with rich contextual descriptions directly from Claude Code, Gemini CLI, Q Chat, or Codex CLI without breaking your workflow. See our MCP Server guide for MCP installation instructions.Power User Tips
If you prefer to use the CLI, use thesb
alias for faster typing:
!
operator (supported by Claude Code, Gemini CLI, and Amazon Q Chat):