Fast, single-binary Rust terminal client & AI agent toolkit for Linear — Issues, Inbox, Cycles, Projects, Documents, Initiatives, Triage, Offline SQLite FTS5 search, hardened local HTTP API (127.0.0.1:8794), and 59 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. - More Than An Issue List: Inbox (
g i: read, snooze, archive), Projects with milestones and status updates (g p,uto post), Documents with$EDITORediting (g d), Initiatives (g n), your saved Linear views in the left rail, My Issues tabs ([/]for Assigned · Created · Subscribed), and a cycle switcher (g v,[/]outside My Issues). - Issue Power Tools: sub-issues (
Shift+S), relations (Shift+R), due dates (Shift+D), estimates (Shift+E), link and file attachments (Shift+A), comment replies, edits, resolution and reactions (Shift+M,+), Git branch name copy (y b), multi-select with batch changes (Space,Ctrl+A), and filter / sort / group (f,o,Shift+O). - 10-Second Sign-In (In-TUI, CLI & CI): Press Enter on the TUI sign-in screen to approve access in your browser (OAuth 2.0 PKCE, no app registration needed), paste a Linear Personal API key (
lin_api_...) instead, or supply an environment/external token broker. - 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. - 59 MCP tools include 31 available in
--read-onlymode. Six of the 28 write tools require literalconfirm: true.bitefoundry-mcpprovides 8 MiB bounded stdio framing and lazy initialization. - 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).
Open issue activity with I and jump to the current Git branch’s issue with g .. In the new issue form (c), use the Template field to fill the draft. In the comment composer (m), type @ and select a user with Tab or Enter.
- Reorder issues with
issues reorderorAlt+Up/Alt+Downin the TUI. Check SLA badges on issues and open the members workload view withg u. - Find issues linked to a PR with
issues from-url, rename attachments withissues attachment-title, and usesearch --semanticorsearch --filter-promptto find work. Useissues batch-createfor atomic creation from a JSON file or stdin. - Create or list issue documents with
documents create --issueordocuments list --issue. Useprojects linkfor external links andprojects labels createfor project labels. - Use
members,agent sessions, andreleasesto inspect workload, agent activity, and releases. For an MCP pilot, startlinear mcp --read-onlyto expose URL lookup, semantic search, filter prompts, and agent and release reads to your MCP client.
# 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
# Launch the interactive 60fps TUI (also supports direct in-TUI API key sign-in)
linear
# Sync workspace metadata + incremental issues and query via CLI/JSON
linear sync
linear issues list --json
linear issues get ENG-12 --print
linear search "cursor pagination" --json
linear search "cursor pagination" --remote --scope issues --json- In-TUI Sign-In:
- Running
linearin an interactive terminal without saved credentials opens the Sign in to Linear screen. PressEnteron an empty field to open browser OAuth, or paste a Personal API key into the masked field.Ctrl+Oopens the Linear security settings where you can create a key.
- Running
- Saved credentials:
linear login(Personal API key) orlinear login --oauth(one-click browser sign-in; OAuth 2.0 PKCE onhttp://127.0.0.1:8795-8797/callback). Linear OAuth access tokens last 24 hours;linearrenews them automatically with the stored refresh token. To use your own Linear OAuth app, register those three redirect URIs and pass--client-id/LINEAR_OAUTH_CLIENT_ID.- Linear saves credentials in the OS keyring (
bitefoundry-linear). If the keyring is unavailable orLINEAR_DISABLE_KEYRING=1is set, Linear falls back tocredentials.jsonin its config directory (~/.config/linear/credentials.jsonon Linux, mode0600on Unix).linear doctorshows the active store.
- 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>)
| 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. |
--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 with list, get, create, batch-create, update, reorder, batch, move, comment, archive --confirm, unarchive, branch, sub-issues, link, unlink, attach, from-url, attachment-title, and react. |
linear inbox |
List notifications (--unread, --snoozed, --refresh). Actions include read, unread, snooze --for 3h, unsnooze, archive --confirm, read-all, and archive-all --confirm. |
linear search |
Search cached issues with SQLite FTS5, use --remote with optional --scope, find ranked workspace results with --semantic, or search issues using --filter-prompt. |
linear teams |
List workspace teams. |
linear members [USER] |
List workspace members and their cached_open_issues counts. |
linear states |
List workflow states (--team <KEY>). |
linear cycles |
List sprint cycles (--team <KEY>). |
linear projects |
List projects or use get, create, update, delete --confirm, milestones, updates, post-update --health, link add/edit/delete, and labels create. |
linear documents |
List documents by --project or --issue, or use get, search, create, update (--body, --body-file), and delete --confirm. |
linear agent sessions |
Use list [--limit 20] [--include-archived] or get <ID_OR_SLUG> [--activities-limit 20]. |
linear releases |
Use pipelines, list [--pipeline ID] [--include-archived], get <ID_OR_SLUG>, notes [--pipeline ID] [--release ID], or note <ID_OR_SLUG> [--print]. |
linear initiatives |
List initiatives; get shows one with its projects. |
linear views |
List saved views, show their issues, or create, update, and delete --confirm a view. |
linear favorites |
List favorites, add an issue, project, view, or document, or remove <ID>. |
linear labels |
List workspace or team issue labels (--team <KEY>). |
linear templates |
List issue templates available to the workspace or a team (--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 |
Remove saved credentials and the local SQLite cache. |
linear whoami |
Show authenticated Linear viewer, organization, and rate-limit status. |
linear doctor |
Inspect config paths, TLS extra CAs, credentials, SQLite cache, 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 --created-by-me
linear issues list --subscribed
linear issues list --triage
linear issues get ENG-12 -p
linear issues history ENG-12 --limit 20
linear issues current
linear issues subscribe ENG-12
linear issues add-label ENG-12 bug
linear issues remove-label ENG-12 bug
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."
# Set COMMENT_ID to the root comment ID from issues get --json.
linear issues comments resolve "$COMMENT_ID"
linear issues comments unresolve "$COMMENT_ID"
linear issues archive ENG-12 --confirm
linear issues unarchive ENG-12
linear issues batch ENG-12 ENG-13 --state Done --due 2027-01-15
linear issues create --team ENG --title "Add retry" --parent ENG-12 --due 2027-01-20
linear issues sub-issues ENG-12
linear issues link ENG-12 ENG-13 --kind blocks
linear issues attach ENG-12 https://github.com/org/repo/pull/42 --title "PR #42"
linear issues attach ENG-12 --file screenshot.png
linear issues create --team ENG --template "Bug report"
linear issues react ENG-12 👍
git switch -c "$(linear issues branch ENG-12)"linear inbox --unread
linear inbox snooze <NOTIFICATION_ID> --for 1d
linear projects get "Offline SQLite Sync"
linear projects milestones create "Offline SQLite Sync" --name "Beta" --target-date 2027-01-15
linear projects post-update "Offline SQLite Sync" "Search is in review." --health on-track
linear documents search "delta sync"
linear documents get sync-design -p > sync-design.md
linear documents update sync-design --content-file sync-design.md
linear initiatives get "Offline-first terminal"
linear views issues "My issues" --json
linear views create --name "Urgent bugs" --priority 1 --label bug
linear favorites add --issue ENG-12linear mcp exposes 59 tools over bounded stdio JSON-RPC 2.0.
- 31 read-only tools include
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,list_inbox,get_project,list_documents,get_document,search_documents,list_initiatives,list_custom_views,get_view_issues,search_remote,get_branch_issue,find_issues_by_url,semantic_search,suggest_issue_filter,list_agent_sessions,get_agent_session,list_release_pipelines,list_releases,get_release, andlist_release_notes. - 22 non-destructive write tools include
create_issue,create_issues,update_issue,transition_issue,assign_issue,move_issue_to_cycle,move_issue_to_project,add_comment,update_issues,unarchive_issue,link_issues,attach_link,mark_notification_read,post_project_update,create_document,update_document,subscribe_issue,add_issue_label,remove_issue_label,mark_all_notifications_read,create_milestone, andupdate_milestone. - Six destructive tools require literal
confirm: trueto runarchive_issue,unlink_issues,archive_notification,delete_issue,archive_all_notifications, ordelete_milestone.
Add this configuration to a stdio MCP client such as Claude Desktop or Cursor.
{
"mcpServers": {
"linear": {
"command": "linear",
"args": ["mcp"],
"env": {
"LINEAR_API_KEY": "lin_api_..."
}
}
}
}See the MCP guide for tool schemas, read-only mode, and confirmation requirements. MCP guide
# Loopback bind generates a per-session 64-hex Bearer token automatically
linear serve
# Bind with an explicit Bearer token
linear serve --port 8794 --token "$LINEAR_SERVE_TOKEN"See the HTTP endpoint reference and architecture guide. HTTP endpoints · Architecture
- Browser sign-in requests
read,write,issues:create,comments:createusing OAuth 2.0 PKCE and a loopback callback. - Linear CLI sends no telemetry. With default settings, network activity is limited to Linear, GitHub Releases when you run
linear update, and loopback for OAuth and the local HTTP API. - Updates are manual. Run
linear update --checkto check for a release orlinear updateto install it. Startup performs no update check. - The npm
postinstallscript runs offline. It hardlinks the native binary already installed by the@bitefoundry/linear-<os>-<arch>optional dependency, with a symlink fallback on Unix and a copy fallback on Windows. - The SQLite cache stays on your machine and uses mode
0600on Unix.linear logoutstops the background daemon and removes the cache from the selected data directory.
MIT — Copyright (c) 2026 BiteFoundry.