AgentKit
DocsKitsCLI ReferenceDesktop App
BetaYou are reading docs for the beta channel (3.4.0-beta.1). Features may change before the next stable release.Switch to stable →

Desktop app

Settings and system

Configure the AgentKit Desktop app, manage the devices bound to your license, manage the local analytics index, read the local usage summary, usage limits, and insights, design a status line, send feedback, and migrate providers.

The System group holds app-level configuration and maintenance: managing the devices bound to your license, sending feedback, editing settings, managing the local analytics index, designing a status line, and migrating providers. After this page you will know what each surface changes and what stays local.

Screenshot provenance: the images on this page were captured from Desktop 2.5.0-beta.32 on 2026-08-01. This page describes the current Beta docs contract independently of those images. They have not been recaptured or visually verified against the current Desktop build, so labels and layout may differ.

Manage license devices

System → Devices lists the machines your App license is activated on. It needs an App license session in Desktop; without one, the page shows No license connected. View license opens the License page. Each row shows:

  • the device name (Unnamed device when the machine reported none) and its AgentKit version, when reported;
  • the platform;
  • First seen and Last seen, in your local time format;
  • a this device tag on the machine you are using now.

Deactivate asks for confirmation, then revokes that device's activation on the AgentKit registry and frees its seat:

  • Another device is signed out remotely. It locks the next time it checks the license with the registry, and must be activated again with the license key to rejoin. This cannot be undone from the machine you used.
  • This device is signed out immediately: Desktop clears its local license session and the app signs out. Activate again with the license key to keep using it.

If the registry cannot be reached, the page shows Devices unknown right now instead of an empty list; devices already bound keep working, so retry later.

The CLI offers the same actions for a license-key session (ak login --license-key):

ak license devices                          # list devices and their ids
ak license devices deactivate <device-id>   # deactivate one device

Deactivation asks for confirmation in a terminal. With --json or --no-interactive, you must pass --yes, otherwise the command exits without deactivating anything. Run ak license devices --help and ak license devices deactivate --help for the exact flags and exit codes.

For seat moves during activation and the limit on how often a license can move, see Desktop remains on the license screen.

Send feedback safely

Feedback form with a redacted preview panel

Feedback files a report in the AgentKit issue tracker. Fill in the type, title, area, and description, optionally attach a redacted diagnostics summary, and review the Redacted preview before submitting.

Feedback is sent only when you submit it. Preview the payload first, and never include a license key, session file, or unmasked config value.

Your reports lists the reports filed from this machine, including ones sent with ak feedback. Each row shows the issue's current state (open or closed) and comment count, read without authentication from the public GitHub API. Only the 25 most recent reports are looked up, and the lookups share an 8-second limit; an older report, or a lookup that fails or runs past that limit, shows status unavailable. A report whose recorded link is not a valid GitHub issue link shows its title without a link.

Edit app settings

Settings App tab showing appearance and runtime preferences

Settings holds App preferences, a config editor, effective-config inspection, and the database tab. App preferences include appearance, theme, and sidebar width, plus:

  • Content font size, which scales the main content area only;
  • Sidebar project limit (All, 5, 10, or 20), after which the rest of your projects collapse; the open project always stays visible;
  • Default split panes, which decides whether a splittable page starts in split view when the app launches; and
  • Interface language, English or Tiếng Việt (Vietnamese). Each option shows the percentage of the interface that is translated, and any text not yet translated appears in English. Until you choose, the language follows your system locale when a translation exists for it, and English otherwise.

These changes apply to this machine immediately and are remembered there. Desktop and the browser dashboard share the same translated interface. Only the interface itself is translated: error messages from the CLI or backend, file contents, and Kit names stay as they were produced. The language an agent writes plans and journals in is a separate setting in the config editor. The default runtime and Claude Code delivery mode are still marked as coming later.

Interface preferences are local Desktop state. The config editor changes AgentKit configuration, so review effective values before saving.

In the config editor, Enabled adapters (adapters.enabled) is a checklist of the runtimes this AgentKit registers, and you can save any combination of them. A newly checked adapter is added after the ones already saved, and when you run ak onboard without --target, the first entry is its default install target. Clearing every box saves none. An adapter in your config that this AgentKit does not register stays listed and checked as "(not registered by this AgentKit)", so you can clear it. The browser dashboard uses the same field. To change only this field from the terminal, run ak setup --step enabled_adapters.

Manage the local analytics index

Settings Database tab with the local analytics index controls

The Database tab manages the Local analytics index that backs the Dashboard. A Use local index switch turns it on or off, and Sync now brings it up to date. The collapsed Troubleshooting section holds Rebuild from scratch, which recomputes the index from supported session sources on this device, and Delete index data, which asks you to confirm, removes the index, and leaves it off until you switch it back on.

You do not need to set the index up yourself. Desktop, and the browser dashboard, turn on an index that was never set up and rebuild one AgentKit wrote that can no longer be read. They never override your choice: an index you switched off or deleted stays that way. The ak CLI never turns the index on by itself. The index is local-only and disposable — nothing is uploaded.

Read provider usage limits

The top-bar badge and popover show the same local usage-limit data as ak usage limits and the Dashboard's Usage limits card. Open the badge, choose a provider (claude, codex, cursor, grok, or all), and choose a window (5h, week, monthly, or all). Claude Code and Codex rows are counted from the local analytics index; Cursor and Grok keep no local transcripts, so their rows show figures only while advanced polling is on for them. Advanced polling is on by default.

The badge itself reads as one of four states — ok, warn, danger, or stale. By default the popover auto-refreshes every 60 seconds and rows carry raw_only provenance: counts read straight from the local index, with no fabricated quota percentage. Claude Code and Codex rows also show an approximate equivalent API cost for their tokens, based on public rates as of the date shown; a subscription is not billed per token. The badge and popover stay empty until the local index has counted usage; if you switched the index off, turn it back on in the Database tab.

A cold or absent index returns zeroed windows together with an index state, so the view explains the empty state instead of showing a misleading zero. Rebuild the index from the Database tab when the windows look stale. Only advanced polling, described below, sends anything off this machine.

Advanced provider polling (experimental)

Advanced polling is on by default. AgentKit asks each provider you are signed in to (Claude Code, Codex, Cursor, and Grok) for its own usage percentages and adds them to the same rows, so the badge, popover, Dashboard card, and ak usage limits show provider-reported quota without any setup. The Advanced polling panel appears in Settings in every build that includes the polling code; release builds do. A build compiled without advanced polling hides the panel and stays local-only.

Polling calls undocumented provider endpoints:

  • Polling them may be against the provider's terms of service.
  • The provider can change or remove the endpoints at any time, and polling then stops working without notice.
  • Polling may lead the provider to rate-limit, restrict, or suspend your account.

Turn polling off or back on

Set Advanced provider polling to Off to stay local-only. The change takes effect immediately, and nothing leaves this machine afterwards. An explicit off is sticky: AgentKit stores usage_limits.advanced.enabled: false with the time you opted out (usage_limits.opted_out_at) and never turns polling back on by itself, including after an update. To opt out by editing the config instead, set both keys. A bare enabled: false, with neither opted_out_at nor usage_limits.ack_last_at, is the value older builds wrote on every save, so AgentKit reads it as the default and keeps polling on.

Setting the switch back to On after an explicit off opens an acknowledgement dialog. Enable polling stays disabled until you tick all three statements above. The acknowledgement is not remembered: every time you turn polling back on, the dialog appears again with every box cleared. While polling is on and you have acknowledged before, the panel shows when you last acknowledged.

To keep one process local-only whatever the stored setting says — for a script, a CI job, or a test suite — set AGENTKIT_USAGE_LIMITS_LOCAL_ONLY=1 (true, yes, and on also work). That process makes no provider calls and does not change the stored setting.

Providers and refresh interval

While polling is on, the panel shows a switch for each provider — Claude Code, Codex, Cursor, and Grok, all on by default — and a Refresh interval of 30 s, 60 s (default), 2 min, or 5 min. The badge, popover, and Dashboard card refresh at that interval. Between polls every surface reads the cached answer, and each provider is capped at a burst of three requests a minute.

AgentKit reuses the access token the official CLI already stored. It never requests, refreshes, or writes a token.

ProviderEndpointToken lookup order
Claude CodeGET https://api.anthropic.com/api/oauth/usageANTHROPIC_OAUTH_TOKEN, then .credentials.json in CLAUDE_CONFIG_DIR or ~/.claude, then the Claude Code-credentials item in the macOS keychain (for a CLAUDE_CONFIG_DIR profile, that item suffixed with - and the first 8 hex digits of the SHA-256 of the directory)
CodexGET https://chatgpt.com/backend-api/wham/usageOPENAI_SESSION_TOKEN, then auth.json in CODEX_HOME, ~/.codex, or (outside Windows) codex under XDG_CONFIG_HOME or ~/.config
CursorPOST https://api2.cursor.sh/aiserver.v1.DashboardService/GetCurrentPeriodUsage (monthly window)CURSOR_ACCESS_TOKEN, then a private copy of Cursor's state.vscdb, then the macOS keychain item
GrokGET https://cli-chat-proxy.grok.com/v1/billing (weekly window)GROK_ACCESS_TOKEN, then ~/.grok/auth.json

On macOS, the first Claude Code or Cursor fetch may show the system's one-time prompt to allow access to that provider's keychain item. If you deny it, AgentKit switches polling off for that provider and marks it auto-disabled, so the prompt does not come back on every refresh; its rows keep showing local counts. To poll it again, allow access from Keychain Access (or set ANTHROPIC_OAUTH_TOKEN or CURSOR_ACCESS_TOKEN), then turn the provider back on.

Rows the provider answered switch to provider_reported provenance and show the provider's used percent; the local token counts stay. Cursor and Grok rows also show when the billing cycle renews. When a poll fails, the rows keep their local counts and show the reason, such as a missing or expired token, a rate limit, or an endpoint error. A provider that has answered before keeps serving its last values, marked stale. If the provider rejects the stored token, AgentKit switches polling off for that provider and marks it auto-disabled; sign in again in that provider's official app or CLI, then turn the provider back on. A build compiled without advanced polling keeps showing local counts.

Plan detection, on by default and effective only while polling is on, labels a provider's rows with the plan the provider names in its usage response (Codex, Cursor, and Grok do; Claude does not). The card announces a detected plan rather than applying it silently.

These settings live under usage_limits in the AgentKit config (~/.agentkit/config.yaml), including usage_limits.advanced.auto_detect_plan for plan detection, and are shared with ak usage limits.

Read the local usage summary

The Usage page totals the tokens your Claude Code and Codex sessions used on this machine. It shows the same summary as ak usage summary. The page has no sidebar entry; open it from the search palette. Choose Today, This week, or This month. The line under the choice shows the period in UTC, the session count, and the data source.

  • Total tokens, split into Input, Output, Cache write, and Cache read. Reasoning tokens are counted inside output.
  • Sessions started in the period.
  • Equivalent API cost, an estimate at public API rates, not a bill. When no estimate is possible, the card says why.
  • Provider windows says that rolling windows are not part of this summary; read them under Read provider usage limits.
  • By runtime, By provider, and By model tables.

The totals come from the local analytics index. Sessions that started after the index was last published appear after the next analytics refresh. When the index is not ready, the page offers Scan transcripts now, which reads the session transcripts directly and can take a while on a long history; a notice then says the totals were parsed live. The page reads only this device and uploads nothing.

Review Skill and agent insights

The Insights page reads that same local evidence store: collect bounded native sources, record outcome evaluations, compare a baseline against a candidate, and inspect the evidence behind one record. Consent for collection and sharing is explicit and separate from local evidence, and a monthly contribution is frozen and privacy-filtered on this machine so you review the payload before sending it. Leaving consent unset keeps every insight local.

An evidence-backed suggestion can become scoped improvement work. From a suggestion you can create an improvement plan in a destination project, defer it, dismiss it, mark it ready for verification, and verify the outcome against recorded baseline and candidate evidence. Each suggestion shows one state: Proposed, Deferred, Dismissed, Planned, Awaiting verification, Insufficient evidence, Improved, or Not improved. These actions write only the local disposition and a scoped plan; they make no provider or model calls. The same lifecycle is available in the CLI as ak insights work, where list is read-only and verify uses local benchmark evidence only.

Design a status line

Status line designer with themes, sections, and a live preview

The Status Line designer builds a Claude Code status line by drag-and-drop: pick a color theme, set context-window and usage-quota thresholds, and arrange the Model, Directory, Git, Cost, and other sections across lines with a live preview. Save writes the status-line configuration.

Migrate providers

Migrate wizard discovering migration sources

The Migrate wizard moves a Claude Code stack toward other providers across four steps — Discover, Reconcile, Execute, and Summary. Discover lists migration sources (such as ~/.claude, ~/.claudekit, and ~/.agentkit) with file counts and sizes so you choose what to include.

Review each step before executing, because migration changes provider setup on this device.