Headless OpenClaw Setup with Discord via Docker Scripts

A developer has shared scripts on GitHub to set up OpenClaw with Discord in a headless Docker environment, specifically designed to work without the TUI or WebUI interfaces, which can be problematic with screen readers.
Key Details
The repository at https://github.com/chigkim/easyclaw includes a Docker image (ghcr.io/openclaw/openclaw:latest) and a management script called claw. The script supports commands: claw [init|config|log|start|stop|restart|build|update|run|dashboard].
OpenClaw runs inside a container isolated from the host, with the ~/.openclaw folder mounted on the host for persistent assets. A dashboard is accessible from outside the container.
The setup is preconfigured with OpenAI Responses API to run with various engines/model setups. It includes:
- Chromium browser inside the container for the agent
- MarkItDown MCP for agents to convert various files to markdown
- Playwright for Node.js
- UV for Python
- FFmpeg
Setup Steps
First, fill out claw.toml with configuration like this:
[models.providers.oai]
baseUrl = "http://localhost:8080/v1"
apiKey = "api-key"
[[models.providers.oai.models]]
id = "qwen3.5-35b-a3b-q8_0"
name = "qwen3.5-35b"
input = ["text", "image"]
contextWindow = 32768
maxTokens = 8192
[agents.defaults]
timeoutSeconds = 600
maxConcurrent = 1
[agents.defaults.subagents]
maxConcurrent = 1
[channels.discord]
token = "DISCORD_BOT_TOKEN"
server_id = "1234"
Then run claw init . to initialize. If the bot is properly configured on your Discord server, you can interact with it on the server. The author notes it has "pretty relaxed rules for Discord, so make your bot private!"
📖 Read the full source: r/LocalLLaMA
👀 See Also

Codegraph: Pre-indexed knowledge graph cuts Claude/Cursor tool calls by 94%
Codegraph uses a pre-indexed knowledge graph of symbol relationships, call graphs, and code structure to reduce API tool calls by up to 94% and speed up usage by ~77% for Claude, Cursor, Codex, and OpenCode agents.

Open-sourced Claude Code prompts reverse-engineered using Claude
A developer used Claude to rewrite all 26 prompts from Claude Code's source after studying the TypeScript codebase during a brief public availability window. The MIT-licensed collection includes system, tool, agent, memory, coordinator, and utility prompts.

Configuring OpenClaw with VAST.AI GPU Rental for Unlimited Ollama Prompts
A user describes combining VAST.AI GPU rental with Ollama and OpenClaw to bypass prompt limits, but encountered configuration challenges requiring manual JSON editing.

Spec27: Spec-Driven Validation for AI Agents – API-Level Testing Without Internal Access
Spec27 is a new tool from Safe Intelligence for spec-driven validation of AI agents. It tests agent behavior from the outside in, running adversarial and robustness checks against primary interfaces without needing SDKs, gateways, or internal traces.