Skip to content

About

Official macOS desktop app for Astra — a local agent workspace that runs model tasks through the Astra CLI, with multi-workspace sessions, subagents, and browser and desktop automation.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Astra Desktop

English · 简体中文

Astra Desktop is a macOS app for running Astra agents in your project folders. Organize conversations by project, follow tool calls as they happen, review file changes after a task, and resume or branch conversations from checkpoints. The app runs tasks through your local Astra CLI.

Download for macOS · Core capabilities · Local development · Contributing

Download and installation

  1. Install the desktop app. Under Assets on the latest release, choose the DMG ending in -arm64.dmg for Apple Silicon or -x64.dmg for Intel. Open it and drag Astra Desktop to Applications.
  2. Install a compatible Astra CLI. For hosted MOI, follow the official Astra client installation guide. If your deployment supplies its own Astra / MOI installer, use that installer. Run astra --version in Terminal and check that it reports 0.2.15 or later.
  3. Connect and start a conversation. Open Astra Desktop, choose Sign in and connect (登录并连接), and complete authorization in your browser. If you already ran astra login in Terminal, choose Refresh sign-in status (刷新登录状态) under Settings → Connection (设置 → 连接). Once connected, select a project workspace and choose New conversation (新建会话).

Preview DMGs use ad hoc signing and may be blocked on first launch. After confirming the DMG came from the release page, follow Apple's Open Anyway instructions.

Runtime requirements

  • macOS and a working model account or provider configuration. Installation and acceptance testing currently use Apple Silicon.
  • An executable Astra CLI 0.2.15 or later. For an existing managed installation, run astra update check to check for a newer build.

The desktop app and Terminal share local Astra credentials. Signing out or switching accounts in either one affects both.

If Terminal finds astra but the app reports it missing or outdated, check Settings → Connection (设置 → 连接). The app searches its own PATH and common install locations, including ~/.local/bin, /opt/homebrew/bin, and /usr/local/bin. For a custom path, set the following in the shell that launches the app.

export ASTRA_DESKTOP_BIN=/absolute/path/to/astra

Core capabilities

Astra Desktop workspace with a conversation list, model picker, and Astra connection status

Agent workflows

  • Manage multiple workspaces and sessions. Queue messages, edit and resend them, regenerate responses, and branch conversations.
  • Transcribe Chinese and English speech locally. When recording ends, the app inserts editable text into the active input field.
  • View subagent activity, collaborate across sessions, and use workspace memory and context compression. A new task sends the current input by default. Workspace briefs and memory are displayed locally. Add an explicit reference to include context from another session.
  • Follow commands, file reads, tool calls, and task status in real time.
  • Select the models and reasoning levels offered by the Astra CLI. The interface supports the providers exposed by the CLI.

Workspace changes and conversation checkpoints

  • After a task ends, review workspace changes and a read-only diff. The changes can include edits made by you, your editor, or another session during the same period. For diffs over 10 MB, the app still shows the file list and line counts. Open the workspace to inspect the full changes.
  • Conversation checkpoints capture message snapshots at task start and end and when you save manually. In a Git workspace or a regular folder, you can use a checkpoint to continue chatting with the files in their current state or branch into a new session.
  • If a conversation snapshot is corrupt or unreadable, the app preserves the original file. Check file permissions or restore from a backup, then retry from the affected session.

Session collaboration

  • Each Astra execution process gets its own collaboration token. A conversation ID alone cannot authenticate another local session as the source.
  • Tasks for different targets can run in parallel. Tasks sent to the same target by multiple sources run in queue order. Duplicate request IDs create only one task.
  • After a restart, the app restores queued collaboration tasks that have yet to start. It marks tasks that were running as stopped and asks you to confirm before retrying to avoid repeating side effects.
  • The capability center shows the local collaboration service status and failure details and lets you restart it manually.

Persistent goals and Work

  • Use astra work to start persistent goals that span sessions and track completion criteria, the Task Graph, the delivery branch, verification progress, and artifacts.
  • The Work center lets you filter by workspace, sync status, view timelines, and add instructions to a goal in progress.
  • The Astra CLI reports Work status and failure reasons. The desktop app reports local process status separately.
  • Older indexes without restrictWorkspaces default to unrestricted. Workspace restrictions apply when explicitly enabled.

Scheduled tasks

  • Schedule daily, weekly, or interval tasks with their own workspace, model, permissions, and run history. Each task runs in a dedicated session while you continue your current conversation.
  • Approval prompts offer one-time approval or denial. An unanswered prompt automatically denies the request after 120 seconds.
  • Scheduling stops while the app is closed. On restart, the app runs one catch-up occurrence for runs missed in the past 24 hours and marks older occurrences as skipped.

Codex compatibility

The following comparison was checked against local Codex CLI 0.171.0-alpha.13.2 on November 28, 2026.

  • Astra Desktop supports sessions across multiple workspaces, subagents, session collaboration, message queuing and interruption, MCP and OAuth, skill and plugin diagnostics, an embedded browser, macOS automation, read-only Codex import, conversation checkpoints with resume and branching, and local releases.
  • The desktop integration uses the Astra CLI's local stdio App Server protocol.
  • Codex features still pending include remote control, Cloud Tasks, native fork and worktree workflows, top-level agent management, the standalone review command, and migrate-rollouts.
  • Codex Hooks and Apps support compatibility diagnostics only.

Automation and resource compatibility

  • The embedded browser supports reading pages, clicking, typing, taking screenshots, and downloading files in the background.
  • Users can take over macOS desktop automation manually.
  • Import Codex and Astra sessions, skills, MCP configurations, and plugins. Codex conversations are saved as Astra snapshots. Regular workspaces reuse the original project folder, where file edits from continued conversations are written.
  • When a Codex session comes from a Git worktree, Astra creates a separate worktree for that source. It shares the Git object database and preserves staged and uncommitted changes and non-ignored work. The import skips common untracked runtime outputs and symlinks pointing outside the workspace.
  • Imported conversations remain available when their working directory is unavailable. Existing workspace copies created by older Astra versions remain usable and are reused on reimport.
  • Older Astra sessions without a linked MOI account appear as Unclaimed (待认领) under Import Astra history (导入 Astra 历史). Select sessions and confirm the import to link them to your current account.
  • Plugin diagnostics check skills, MCP, Hooks, Apps, and built-in alternatives individually.

MCP configuration

  • Configure MCP at the project or user level, test connections, list tools, and enable or disable servers.
  • The configuration wizard supports API keys, tokens, environment variables, request headers, and auth_token.
  • OAuth 2.0 uses the authorization code flow with PKCE, a random state value, a local loopback callback, and token exchange.
  • The advanced JSON editor preserves values for redacted fields and keeps secrets hidden after saving.

Desktop experience and releases

  • Choose from Clay, Forest, Mint, and Ocean themes in light, dark, or system mode.
  • The local release manifest records the commit, build time, and SHA-256 hashes of the DMG and app.asar.
  • Build, back up, install, verify the running version, and roll back on failure with one command.
  • Settings shows the app version and build commit so you can identify an older installation.

Local development

Building from source requires macOS, Git, Node.js 26, pnpm 11, and the Xcode Command Line Tools. Install dependencies and check the Electron runtime.

pnpm install --frozen-lockfile
pnpm exec electron --version

Start the development app.

pnpm dev

electron-vite builds the Electron app. The preload exposes a limited IPC API to the React renderer. The main process handles the Astra CLI, files, Git, MCP, automation, and local data.

The CLI's stdio responses determine session binding and task results. The desktop app stores the local conversation view, workspace state, and file interaction state. See turn execution, conversation persistence, and desktop IPC for the entry points. The desktop app uses the CLI's --expected-auth-generation check when available.

Checks and tests

pnpm typecheck
pnpm test
pnpm build

Run all routine checks together on a feature branch.

./scripts/check-worktree.sh

The script refuses to run on main. After merging, run pnpm typecheck, pnpm test, and pnpm build individually in the main checkout.

Electron acceptance scripts using CDP are in tests/cdp-*.mjs. For parallel acceptance testing, give each instance its own --user-data-dir and ASTRA_LOCAL_STATE_ROOT, separate from the installed app's data directory.

Worktree development workflow

Make source, test, documentation, and packaging changes on a dedicated task branch.

./scripts/new-worktree.sh feat/my-feature --install
cd /path/to/astra-desktop-worktrees/feat/my-feature
./scripts/check-worktree.sh

After the PR is merged into main, rerun the checks in the main checkout, then clean up the merged worktree once it is clean.

./scripts/remove-worktree.sh feat/my-feature

Manage Codex-owned directories under $CODEX_HOME/worktrees through Codex Handoff or archiving.

Build and update an installed copy

One-command local release

ASTRA_DESKTOP_PREVIEW_SIGNING=1 pnpm release:sync

The default workflow does the following.

  1. Requires a clean Git worktree and records the release commit.
  2. Runs type checks and the full test suite.
  3. Builds the app and packages a DMG for the current Mac architecture.
  4. Writes the architecture-specific DMG and release/release-manifest.json.
  5. Quits the existing app, backs it up, and installs the new build into /Applications/Astra Desktop.app.
  6. Verifies the DMG, installed files, signature, running build commit, and Settings page.
  7. Restores the previous version on failure or reopens the app on success.

Package the app without replacing the installed copy.

ASTRA_DESKTOP_PREVIEW_SIGNING=1 pnpm release:sync -- --no-install

Verify an existing release separately.

pnpm release:verify

The standard pnpm dist builds Intel and Apple Silicon DMGs and generates the release manifest. See the release guide for cleanup of unpacked apps, acceptance evidence, and the pre-release checklist.

Distribution and updates

Builds with a GitHub Releases update feed check at startup and hourly. Open Upgrade (升级) in the lower-left corner and choose Update and restart (更新并重启) to download, verify, and install the new version. To enable updates on an older build without a feed, install the latest DMG manually.

For maintainers, merging a version bump to main starts the GitHub release workflow.

Configuration and data security

  • Default desktop data directory is ~/Library/Application Support/astra-desktop/.
  • Default Astra state directory is ~/.astra/. Set ASTRA_LOCAL_STATE_ROOT to isolate it.
  • MCP configuration is written to files with permissions 0600. Sensitive fields are redacted when read and in the interface.
  • Use HTTPS for production OAuth URLs. HTTP is reserved for local tests on 127.0.0.1, localhost, or ::1.
  • Keep sign-in state, tokens, private keys, and user sessions out of the repository, test screenshots, and logs.
  • Codex imports read the source without writing back to the original application data.

Repository layout

src/
  main/        Electron main process, Astra CLI, Git, MCP, automation, and releases
  preload/     Restricted IPC API
  renderer/    React and Ant Design interface
  shared/      Types and protocols shared by main, preload, and renderer
scripts/       Worktree, build, release, install, and acceptance scripts
tests/         Unit tests and Electron/CDP acceptance tests
docs/          Release and maintenance documentation

Version management

Prepare a version bump using the release guide. Before publishing an installer, check the source, test evidence, and release artifacts for credentials or private data, and verify the signing and distribution licenses.

Feedback and contributions

Search existing issues before reporting a bug or suggesting an improvement. Include your app version, environment, reproduction steps, and redacted screenshots or logs where available. See CONTRIBUTING.md for the pull request workflow.

About

Official macOS desktop app for Astra — a local agent workspace that runs model tasks through the Astra CLI, with multi-workspace sessions, subagents, and browser and desktop automation.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages