Skip to content

Getting Started

30-second quickstart

bash
npm install -g golembot
mkdir my-bot && cd my-bot
golembot onboard

Three commands. You'll be chatting with an AI agent in under a minute.

Prerequisites

  • Node.js >= 18
  • A Coding Agent CLI installed and authenticated:
    • Cursor (agent CLI) — run agent login or set CURSOR_API_KEY
    • Claude Code (claude CLI) — run claude auth login or set ANTHROPIC_API_KEY
    • OpenCode (opencode CLI) — set API key for your provider (e.g. ANTHROPIC_API_KEY)
    • Codex (codex CLI) — run codex login or set CODEX_API_KEY

The golembot onboard wizard will detect existing authentication and guide you through setup if needed. You can also run golembot doctor at any time to verify your configuration.

If you plan to route Codex through a custom provider, verify that the provider supports the OpenAI Responses API. Providers that only expose /chat/completions or Anthropic-style /messages endpoints will not work. See Provider Routing.

Install

bash
npm install -g golembot

Or with pnpm / yarn:

bash
pnpm add -g golembot
# or
yarn global add golembot

Quick Start

bash
mkdir my-bot && cd my-bot
golembot onboard

The onboard wizard walks you through engine selection, authentication, naming, IM channel setup, and scenario template selection in 8 interactive steps. Use --template <name> to skip template selection (e.g., golembot onboard --template customer-support).

Option B: Manual Init

bash
mkdir my-bot && cd my-bot
golembot init -e claude-code -n my-bot

This creates:

  • golem.yaml — assistant configuration
  • skills/ — skill directory with built-in skills (general + im-adapter)
  • AGENTS.md — auto-generated context for the Coding Agent
  • .golem/ — internal state directory (gitignored)

Start a Conversation

bash
golembot run

This opens an interactive REPL. Type your message and press Enter. The Coding Agent handles everything — reading files, running scripts, multi-step reasoning.

REPL commands:

  • /help — show available commands
  • /status — show current engine, model, and skills
  • /engine [name] — show or switch engine
  • /model [list|name] — show, list available, or switch model
  • /skill — list installed skills
  • /cron — manage scheduled tasks (list, run, enable, disable, history)
  • /stop — cancel the current running task
  • /reset — clear the current session and history
  • /quit or /exit — exit

Start the Gateway Service

bash
golembot gateway

This starts an HTTP API, a web Dashboard (at http://localhost:3000/), and any configured IM channel adapters. The Dashboard shows real-time metrics, channel status, and lets you test the API directly from the browser.

GolemBot Dashboard

To view all running bots at a glance:

bash
golembot fleet ls          # list running bots (CLI)
golembot fleet serve       # start Fleet Dashboard (web, port 4000)
GolemBot Fleet Dashboard

GolemBot supports the following IM platforms out of the box:

PlatformConnection Mode
Feishu (Lark)WebSocket (no public IP needed)
DingTalkStream mode (no public IP needed)
WeComWebSocket (no public IP needed)
SlackSocket Mode (no public IP needed)
TelegramPolling (no public IP needed)
DiscordGateway API (no public IP needed)

See Channels Overview for setup instructions.

Which Approach Is Right for You?

ScenarioApproachCommand / Entry Point
Try it out, personal useCLI REPLgolembot run
Connect to IM (Feishu, Slack, Telegram...)Gatewaygolembot gateway
Embed in your Node.js appLibrarycreateAssistant()
Expose API for frontend / external servicesHTTP APIGateway + POST /chat

Use as a Library

GolemBot's core is an importable TypeScript library:

typescript
import { createAssistant } from 'golembot';

const assistant = createAssistant({ dir: './my-bot' });

for await (const event of assistant.chat('Analyze the sales data')) {
  if (event.type === 'text') process.stdout.write(event.content);
}

This pattern works for embedding into Slack bots, internal tools, SaaS products, or any Node.js application. See the Embed in Your Product guide for Express, Next.js, background job, and Slack examples.

What's Next

Released under the MIT License.