Skip to content

Installation

OpenShrimp bundles the Claude Code CLI via the Agent SDK, so there’s nothing to install separately. You just need to authenticate Claude — either by running /login from inside the bot (see Authenticate Claude below), or by setting ANTHROPIC_API_KEY in your environment.

You need either of the following agent runtimes, depending on the backend you choose:

  • Claude Code CLI — bundled, for the default claude_sdk backend. Authenticate as described above.
  • OpenCode — only if you select the opencode backend. Install the opencode binary so it’s discoverable, then run opencode auth login to authenticate. See Agent Backends for the full preconditions.

Grab the latest binary for your platform. No Python or package manager required — just download, configure, and run.

Requires glibc ≥ 2.39 (Ubuntu 24.04+, Debian 13+, Fedora 40+). On older distros, build from source instead.

Terminal window
curl -fsSL https://github.com/yjwong/open-shrimp/releases/latest/download/openshrimp-linux-x86_64 -o openshrimp
chmod +x openshrimp

Requires glibc ≥ 2.39 (Ubuntu 24.04+, Debian 13+, Fedora 40+). On older distros, build from source instead.

Terminal window
curl -fsSL https://github.com/yjwong/open-shrimp/releases/latest/download/openshrimp-linux-aarch64 -o openshrimp
chmod +x openshrimp
Terminal window
curl -fsSL https://github.com/yjwong/open-shrimp/releases/latest/download/openshrimp-macos-aarch64 -o openshrimp
chmod +x openshrimp

All binaries and source archives are also available on the GitHub Releases page.

On macOS, OpenShrimp is also available as a menu bar app. Download the .dmg from Releases, drag to Applications, and launch — no terminal needed.

  • Lives in the menu bar (shrimp icon) with no Dock icon
  • First-run setup wizard walks you through configuration with native macOS dialogs
  • Start/stop the bot, open config, view logs — all from the menu bar
  • “Start at Login” toggle for automatic launch

On first run, the binary launches an interactive setup wizard:

Terminal window
./openshrimp

The wizard walks you through:

  1. Entering your Telegram bot token (from @BotFather)
  2. Your Telegram user ID (from @userinfobot)
  3. Creating your first context (project directory, description, model)

It writes the config to a platform-specific location (~/.config/openshrimp/config.yaml on Linux, ~/Library/Application Support/openshrimp/config.yaml on macOS). You can also set this up manually — see Configuration.

On subsequent runs, the binary starts instantly.

Once the bot is running, open it in Telegram and send /start to see a welcome message confirming you’re connected and showing your current context.

If you haven’t set ANTHROPIC_API_KEY, send /login (in a private chat) to authenticate Claude Code via OAuth. This opens a Mini App that runs the same OAuth flow you’d get from the Claude Code CLI — paste the resulting token to finish login. Use /login again any time you need to re-authenticate.

If you need to build from source (older Linux distros, development, etc.), see Building from Source.

Before running the bot, you need a Telegram bot token. Head to Telegram Setup.