
discrawl
github.com/openclaw/discrawl- Category
- Productivity
- Rank
- No. 1304Tools index
Previous survey · No. 1311 ·
- Pricing
- Open Source
- Type
- TOOL
- Builder
- openclaw
- GitHub
- 839 stars
- Latest release
- v0.14.0
- Date
About
OpenClaw's CLI for Discord with a SQLite backend — local-first archive of channels, threads, and DMs for search and offline access.
What it does
Discrawl turns Discord history into a queryable working dataset. It collects bot-visible server data, imports messages found in Discord Desktop caches, follows new events, and consumes published snapshots. Users can search, browse interactively, run SQL, inspect activity, or emit JSON for automation.
Why it's ranked here
Discrawl has unusually broad retrieval and maintenance workflows for a terminal tool. Full-text search needs no external service, archive sharing can remove Discord credential requirements for readers, and diagnostics expose freshness, coverage, failures, and database health. Its careful handling of cached direct messages strengthens the case.
What's good
The source choices fit different access constraints: bot synchronization for server history, desktop cache recovery, Git snapshots, and remote read-only archives. Direct messages remain outside published snapshots. Search supports filters and optional semantic modes, while stable JSON and plain-text output make the same archive useful to people, agents, and CI.
Tradeoffs
Desktop cache import only recovers messages already cached on that machine, so it cannot reconstruct complete account history. Bot collection sees only data available to the bot, and historical backfills may take time under Discord rate limits. Semantic search adds an embedding provider and a separate indexing pass. Some remote access bypasses local SQLite.
How to use it well
Use Discrawl when Discord history needs durable investigation, terminal search, reporting, or credential-free distribution to readers. Start with a dry cache inspection for recovery work, or configure a bot for maintained server archives. Keep full-text search as the default unless semantic retrieval justifies extra setup. Do not treat cache import as complete DM backup.
Technical notes+
README.md documents four ingestion or access paths, FTS5 search, snapshot publication, JSON automation, and platform installation. go.mod declares module github.com/openclaw/discrawl, Go 1.26.5, DiscordGo, Kong, go-keyring, crawlkit, and modernc SQLite dependencies. internal/cli/cli.go centralizes command dispatch and exposes a large CLI surface. internal/cli/output.go implements JSON, stable plain text, and human output. internal/cli/messages.go and internal/cli/mentions.go validate mutually exclusive filters before querying storage. internal/cli/sync_lock.go uses lock metadata, owner tokens, PID checks, and sidecars to coordinate writers and live tailing. internal/cli/cli_test.go contains extensive command validation and output tests. Makefile defines formatting, static analysis, vulnerability scanning, race testing, coverage enforcement, smoke checks, and release verification.
Observed
- License
- MIT
- Primary language
- Go
- Install surface
- Homebrew on macOS and Linux, Windows release binaries, signed platform archives, Docker documentation, and source builds
- Interfaces
- Command-line interface, interactive terminal UI, read-only SQL, JSON output, and stable plain-text output
- Platform support
- macOS, Linux, and Windows
- Storage engine
- SQLite with FTS5 search
- Test structure
- Go tests are present, including CLI command validation and output coverage
Read from README.md, go.mod, Makefile, internal/cli/cli.go, internal/cli/digest.go, internal/cli/output.go, internal/cli/helpers.go, internal/cli/cli_test.go, internal/cli/coverage.go, internal/cli/failures.go, internal/cli/mentions.go, internal/cli/messages.go, internal/cli/analytics.go, internal/cli/sync_lock.go, internal/cli/query_sync.go.
What it can do
Archive Discord channels locally
Discord channel data → Local SQLite database with channel messages
Archive Discord threads locally
Discord thread data → Local SQLite database with thread messages
Archive Discord direct messages locally
Discord DM conversations → Local SQLite database with DM history
Search archived Discord content
Search query and local SQLite database → Matching messages from archived channels, threads, and DMs
Provide offline access to Discord history
Local SQLite database → Accessible Discord message history without internet connection
Tags
Tech Stack
Media

Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.