An AI assistant on Session Messenger using OpenClaw or Hermes Agent with an OpenCode Go API key.

Setup

Requires a VPS (Ubuntu 24.04 LTS / 26.04 LTS, 1 GB RAM, IPv6 optional). We recommend Kamatera's $4/month plan — use this link for a free 30-day trial with $100 in cloud credits. You'll also need a separate Session account for your AI agent, plus your own Session ID. The script prompts for your agent's Recovery Password.

Tested on Ubuntu. Debian may work but is untested.

One command as root — installs everything and runs 24/7:

# curl -sL https://sessionaiagent.com/setup.sh | bash
After setup, the bot's Session ID is printed. Add it as a friend in Session. Only your Session ID can message the bot.
Re-run the script anytime to change model or uninstall.

OpenCode Go

Session AI Agent runs on OpenCode Go — a subscription for coding models including DeepSeek, GLM, Kimi, Qwen, and more. Use this link for your first month at $5 (then $10/month).

The script fetches available models live during setup. You pick by number. Default: opencode-go/deepseek-v4-pro.

Agent Engines

Choose between two AI engines during setup:

After Setup

To change models, re-run the setup script or edit .env directly:

$ cd /root/session-claw-bridge && nano .env
$ systemctl restart claw-bridge

Your .env:

SESSION_MNEMONIC="your 13 words" OWNER_SESSION_ID=05abc... OPENCODE_API_KEY=... MODEL=opencode-go/deepseek-v4-pro