Skip to main content

Quick Setup

1. Install

This single package provides both the CLI and MCP server.

2. Authenticate

Complete the OAuth flow in your browser with Github or Google. Authentication is shared between the CLI and MCP server automatically.

3. Configure Your AI Chat App

SessionBase currently supports Claude Code, Gemini CLI, Amazon Q Chat, and OpenAI Codex CLI.

Claude Code

Use the built-in MCP management command:

Gemini CLI

Add to your Gemini MCP configuration file at ~/.gemini/settings.json:

Amazon Q Chat

Add to your Q Chat MCP configuration at ~/.aws/amazonq/mcp.json:

OpenAI Codex CLI

Add to your Codex configuration at ~/.codex/config.toml:

4. Start Using

Once configured, you can use natural language in your AI chat:
  • “Push this to SessionBase”
  • “List my recent Claude code sessions”
  • “Push this session as private with the tags ‘API debugging‘“

Custom Slash Commands

Claude Code
Now from claude you can simply run /upload and Claude will automatically generate metadata and push to SessionBase for you. You can also choose a different alias for your custom slash command by renaming upload.md to another file. For more details on custom slash commands, see the Anthropic docs.
Gemini CLI
Then add this content to ~/.gemini/commands/upload.toml:
Now you can run /upload from Gemini CLI to automatically push sessions to SessionBase. For more details on Gemini custom slash commands, see the Google Cloud docs. Amazon Q Chat and OpenAI Codex CLI do not currently support custom slash commands. You can still use natural language to push sessions (e.g., “Push this to SessionBase”), or use the CLI directly.

Available Commands

The MCP server exposes these tools through natural language:
  • Push Session: Share your current or recent AI coding sessions
  • List Sessions: Browse your local session history
  • Check Status: Verify authentication and connection

Troubleshooting

”No such file or directory” Error

If you see this error, ensure the package is installed globally:

Authentication Issues

Verify you’re logged in:
If not authenticated, run sessionbase login again.

Platform-Specific Session Detection

SessionBase can automatically push your current chat session for Claude Code and Amazon Q Chat. For the Gemini CLI, you must run the /chat save <TAG> command first, then SessionBase can push from there. The table below summarizes some of the platform specific behavior.