ArakunDocsDownloadarakun on GitHub

The arakun command

How the command works

How the arakun command works: it acts on the environment of the folder you run it in, from your terminal or from an agent.

On this page
  1. Everyday commands
  2. Run window actions
  3. One Arakun at a time
  4. Help and mistakes
  5. Every command
  6. Without a running Arakun
  7. Open the palette from anywhere

While Arakun is running, arakun <command> acts on the environment of the current folder. It talks to the app over a local control socket: $XDG_RUNTIME_DIR/arakun/control.sock, or %LOCALAPPDATA%\arakun\control.sock on Windows.

Terminals and agents started by Arakun get ARAKUN_SOCKET and arakun on their PATH. The agents also get a note about it in their system prompt. Turn off Notes to agents in Settings › General › Agents, or set ARAKUN_AGENT_HINT=off, to remove that note.

In a session, an agent's arakun command shows as what it does, such as "Search memory", "Click" or "New agent". Open the row to see the command and its output. A line that does more than the arakun command, such as a pipe, shows the command as typed.

#Everyday commands

sh
arakun .                    # add this project, or switch to it; starts Arakun if needed
arakun ls                   # projects, environments and sessions
arakun show                 # bring the window up
arakun palette              # bring the window up with Ctrl+K open
arakun notify "done"        # desktop notification
arakun notices --unseen     # notifications you haven't read yet
arakun rename fix/tab-name  # rename this environment's branch
arakun quit                 # quit Arakun, also when its window is hidden
arakun restart              # quit and start again once other sessions' turns finish
arakun restart --now        # quit and start again at once
arakun doctor               # what is missing on this computer, and how to fix it
arakun --version            # print the version

arakun doctor works without a running Arakun. See Check your setup.

arakun rename works only before the branch is pushed. The folder keeps its name.

arakun restart waits for the other sessions' running turns to finish, for 10 minutes at most, and says which sessions it waits on. The session that ran it and sessions waiting on you don't count. A turn it still cuts off goes on by itself after the restart, told which commands the restart stopped. The Restart buttons in the app restart at once.

#Run window actions

Everything a shortcut, the palette or a button does in the window is an action with a name. arakun action lets you or an agent run the same actions:

sh
arakun action ls                                    # every action: name, what it does, arguments
arakun action ls split                              # only the actions about "split"
arakun action ls --json                             # the same as JSON, for agents
arakun action run split-right                       # run one in this environment
arakun action run select-tab --n 3                  # with an argument
arakun action run split-right --env arakun/keen-coral --json

arakun action ls works without a running Arakun. arakun action run acts on the environment the command runs in. --env names another one, by its folder or its project/env label. With --json it prints the result as JSON.

Exit codeWhen
0The action ran.
1It can't run now, or what it names is not there.
2The action or one of its arguments is unknown.
3It needs a person's approval, or the person declined or didn't answer.

Guarded and irreversible actions, and every action a sandboxed agent asks for, need a person's approval. For now only the window gives it, so do those in the window.

#One Arakun at a time

Only arakun alone and arakun <dir> start the app. Run arakun again while it runs and it brings the window up instead. arakun <dir> adds that project to the running window.

An Arakun with its own ARAKUN_STATE, such as arakun dev, has its own socket and its own arakun command. The command in your terminal keeps reaching your daily Arakun.

#Help and mistakes

  • arakun --help lists the commands. arakun help --all also lists the commands Arakun runs itself.
  • -h or --help after a command prints its usage and runs nothing.
  • A command or flag it doesn't know prints an error and exits with code 2.
  • Help and flags count only before the prompt, message or command line a command passes on. So arakun run make --help runs make --help.
  • A message that starts with a dash needs -- before it: arakun notify -- -1 test failed.
  • -s or --side shows a tab in the pane beside the active one.

#Every command

Each group has a page of its own.

Pages, files and terminals
sh
arakun browse -s localhost:3000       # open a page beside the chat
arakun open -s src/main.rs:42         # open a file at line 42
arakun page screenshot                # drive the environment's browser tab
arakun run --port 5173 npm run dev    # new terminal; wait until the port answers
arakun logs 2 --until compiled        # wait until terminal 2 prints "compiled"
arakun check                          # run the project check here

See Open pages and files, Read a terminal and Run the project check.

Output and web pages for agents
sh
arakun shrink -- cargo test           # run it and print a summary of the output
arakun fetch <url>                    # a web page as Markdown, through Browser Run
arakun crawl <url>                    # a site's pages as Markdown

See Shrink command output and Fetch web pages.

Memory
sh
arakun mem search <words>             # search what agents remember about this project
arakun mem scripts                    # scripts agents keep writing here, worth keeping

arakun mem help lists the rest. See Memory.

Artifacts
sh
arakun artifact list                  # the artifacts of this project
arakun artifact check <file>          # what is wrong with a page as an artifact
arakun artifact export <file>         # the page as one self-contained file
arakun artifact share <file>          # share the page by link and print the link
arakun artifact shares                # the links you shared
arakun artifact unshare <id or link>  # take a link down

arakun artifact help lists the rest. See Artifacts.

Agents in the background
sh
arakun agent start --agent claude <prompt>   # a session in the window, listed in the sidebar
arakun agent start --headless <prompt>       # a headless agent that goes on with Arakun closed
arakun agent start --server <prompt>         # a session on the Arakun server on this machine
arakun agent ls                              # the sessions and their status
arakun agent wait <id>                       # wait until it stops working
arakun agent pending                         # tool calls headless agents wait on you for
arakun agent approve <id> <req_id>           # or deny

arakun agent start starts an agent and prints its id. Without a flag it starts in the window, and --agent is claude, opencode or workers-ai. --headless is the same as arakun agent run, and --server the same as arakun server new, with any agent the server runs. arakun agent new still starts a session in the window, with the agent picked by its model.

See Headless agents.

GitHub
sh
arakun github draft o/r#12 --verdict approve --head <sha> --body-file - < review.md
arakun github pilot connect <url> --token -

github draft saves a review draft and sends nothing. See Leave a review draft. github pilot connects arakun-pilot, the pull request agent; arakun github pilot help lists its commands.

The island and notices
sh
arakun island alert "Backup done" "412 files"   # show a card on the island
arakun notices                                  # every notice, newest first

See Dynamic Island and Inbox.

Claude seats and usage
sh
arakun seat add work < token.txt      # save a Claude seat (a `claude setup-token` token)
arakun seat ls                        # the seats and their 5-hour and weekly usage
arakun seat rm work                   # forget a seat
arakun usage tools --days 7           # which tools' results used the tokens of Workers AI turns
arakun usage where                    # where Claude Code sessions' tokens go, and what to fix first

See Where tokens go.

Updates, servers and feedback
sh
arakun update --check                 # say whether there is a new release
arakun update                         # download and install it
arakun update --channel nightly       # switch to nightly builds of main (or stable)
arakun server serve                   # run sessions on this machine without the window
arakun feedback --kind bug "..."      # tell the Arakun team about a problem

A running Arakun installs the update when it quits. Nightly builds can break. See Server for arakun server help.

arakun feedback takes bug, feature, ux or other, up to 4000 characters, or - to read stdin. Agents use it too. It needs usage telemetry on.

#Without a running Arakun

These work with the app closed: arakun --version, arakun shrink, arakun fetch, arakun crawl, arakun mem, arakun island and headless agents.

#Open the palette from anywhere

Bind arakun palette to a global key in your desktop. On Hyprland, for example:

hyprland.conf
bind = SUPER, K, exec, arakun palette

Did this page help?

Tell us about a mistake on this page, or ask for help with Arakun.