Fast, single-binary Rust terminal client & AI agent toolkit for Linear — Issues, Cycles, Projects, Triage, Offline SQLite FTS5 search, hardened local HTTP API (127.0.0.1:8794), and 20 typed MCP tools.
- 60fps Linear-Native TUI: 3-pane layout (
My Issues/Triage/Active Cycle/Teams/Projects), instant1List ↔2Kanban Board toggle, Day-1 native drag-and-drop (Kanban cards across workflow columns + issues onto Cycles/Projects/Triage/My Issues with 0ms optimistic updates & rollback),Ctrl+KCommand Palette,SafeCursorBackend(DSR-timeout immune), and 0.0% idle CPU. - 10-Second Onboarding & Zero-Login Demo: Authenticate with a Linear Personal API key (
lin_api_...), OAuth 2.0 PKCE, or external token broker — or run immediately offline with--demo. - Offline SQLite WAL + FTS5 Search: Trigram FTS5 full-text index with automatic CJK/Korean & short-token
LIKEfallback plus case-insensitive issue identifier lookup (eng-12→ENG-12). - 2-Lane Incremental Delta Sync: Tracks
updatedAtRelay cursors and Linear'sX-RateLimit-*/ complexity budget headers with exponential 429 backoff and a single-instance IPC daemon. - 20 Safe MCP Tools: Powered by
bitefoundry-mcp(8 MiB bounded stdio framing, lazy initialization,--read-onlymode hiding/blocking all 8 write tools, and literalconfirm: trueguard onarchive_issue). - Hardened Local HTTP API (
127.0.0.1:8794): Powered bybitefoundry-serve(DNS-rebindingHostguard,Sec-Fetch-Site: cross-siteCSRF rejection, strict CORS allowlist, and constant-time 64-hex Bearer token auth). - Script-Ready CLI Contract:
--json/-jalways emits structuredJsonErrorEnvelopepayloads onstdoutwith exit code1(canonical"not_authenticated"code, zero interactive prompts in non-TTY mode).
# Explore immediately with zero login using the built-in 20-issue demo workspace
linear --demo issues list
linear --demo issues get ENG-12 --print
linear --demo search "결제 오류" --json
# Sign in with a Linear Personal API key (10 seconds)
linear login --api-key lin_api_...
# Or pipe non-interactively in scripts/CI
printf '%s\n' "$LINEAR_API_KEY" | linear login --api-key-stdin
# Sync workspace metadata + incremental issues into local SQLite
linear sync- External Token Broker / Environment (CI, containers, AI agents):
LINEAR_API_KEY(Personal API Keylin_api_...— sent as rawAuthorization: lin_api_..., neverBearer, per Linear API requirements)LINEAR_ACCESS_TOKEN,LINEAR_TOKEN_FILE,LINEAR_TOKEN_REFRESH_CMD(OAuth 2.0 tokens sent asAuthorization: Bearer <token>)
- OS Keyring (
bitefoundry-linear):linear login(Personal API key) orlinear login --oauth(OAuth 2.0 PKCE loopback flow withLINEAR_OAUTH_CLIENT_ID).- Set
LINEAR_DISABLE_KEYRING=1to use the atomic0600fallback file.
- Zero-Login Demo (
--demo):- Deterministic in-memory workspace (
ENG&DESteams, active Cycle 14, 3 projects, 20 realistic issues with sub-issues, comments, and labels).
- Deterministic in-memory workspace (
| Flag | Description |
|---|---|
-j, --json |
Machine-readable JSON output (errors emit JsonErrorEnvelope on stdout + exit code 1). |
-p, --print |
Clean print-friendly Markdown output without interactive chrome. |
--demo |
Use the offline 20-issue deterministic demo workspace (zero credentials required). |
--no-color |
Disable ANSI colors in terminal output. |
--no-nerd-fonts |
Force 7-bit ASCII icon fallback instead of Unicode/Nerd Font glyphs in the TUI. |
--theme <THEME> |
Override TUI color theme preset (linear-dark, linear-light, or any built-in theme). |
--config-dir <PATH> |
Override configuration directory (isolates config, credentials fallback, and SQLite cache). |
| Command | Description |
|---|---|
linear |
Launch the interactive 60fps Linear TUI (1 List / 2 Kanban Board, Ctrl+K Command Palette, drag-and-drop). |
linear issues |
Manage issues: list, get, create, update, move, comment, archive --confirm. |
linear search |
Offline SQLite FTS5 + CJK/short-token search (--team, --limit). |
linear teams |
List workspace teams. |
linear states |
List workflow states (--team <KEY>). |
linear cycles |
List sprint cycles (--team <KEY>). |
linear projects |
List workspace projects. |
linear labels |
List workspace or team issue labels (--team <KEY>). |
linear sync |
Run metadata bootstrap + incremental updatedAt delta sync. |
linear login |
Sign in with --api-key, --api-key-stdin, or --oauth. |
linear logout |
Clear stored credentials from the keyring / fallback store. |
linear whoami |
Show authenticated Linear viewer, organization, and rate-limit status. |
linear doctor |
Inspect config paths, TLS extra CAs, credentials, and daemon status. |
linear serve |
Start the hardened local HTTP API server (default 127.0.0.1:8794). |
linear mcp |
Start the stdio JSON-RPC 2.0 MCP server (--read-only, --max-output-chars). |
linear daemon |
Control background sync daemon (start, stop, status). |
linear update |
Check for (--check) or install SHA-256 verified GitHub Releases updates. |
linear issues list --team ENG --state "In Progress" --priority 1 --limit 20
linear issues list --mine
linear issues list --triage
linear issues get ENG-12 -p
linear issues create --team ENG --title "Fix cursor pagination" --priority 2 --labels bug,perf
linear issues update ENG-12 --state "In Review" --assignee "Alex Kim" --estimate 3
linear issues move ENG-12 --state Done --cycle 14 --project "Offline SQLite Sync"
linear issues comment ENG-12 "Verified against staging."
linear issues archive ENG-12 --confirmExposes 20 Linear tools over bounded stdio JSON-RPC 2.0 (linear mcp):
whoami, list_teams, list_workflow_states, list_cycles, list_projects, list_labels, list_issues, list_my_issues, list_triage, get_issue, search_issues, get_rate_limit_status, create_issue, update_issue, transition_issue, assign_issue, move_issue_to_cycle, move_issue_to_project, add_comment, archive_issue.
See docs/MCP.md for full tool schemas, --read-only policy, confirm: true confirmation gate, and Claude Desktop / Cursor configuration.
# Loopback bind generates a per-session 64-hex Bearer token automatically
linear serve
# Offline demo HTTP API
linear --demo serve --port 8794See docs/MCP.md for endpoint details and docs/design.md for architecture and security invariants.
MIT — Copyright (c) 2026 BiteFoundry.