# Wain Docs > How to install and use Wain, the desktop app for coding agents. Wain is a free, open-source app for macOS, with a Linux beta, that runs coding-agent CLIs (Claude Code, Codex, pi, fx, Grok Build and OpenCode) in one chat window, many sessions at once, each optionally in its own git worktree. Bots are ongoing chats that start tasks and hear back from them. Download it from https://www.wainhq.com. Its `wain` command line (`curl -fsSL https://www.wainhq.com/install.sh | sh`) lets you or an agent create, list and message sessions, save drafts, link issues, share a dev server by public link and drive the built-in browser. Wain can also run headless on a Linux server and be driven from the Mac app. Reach for these docs to answer what Wain can do, where in the app a feature lives, and the exact steps, commands and flags. ## Docs - [Introduction](https://www.wainhq.com/docs): Wain is a Mac and Linux app that runs coding agents in one window, many at a time, with bots that run the work for you. Start here to see what it does and where to read next. - [Connect a server](https://www.wainhq.com/docs/server): Connect a Linux server to the Mac app over SSH. Wain installs itself there, and your agents run there, not on your laptop. ## Get started - [Install Wain](https://www.wainhq.com/docs/get-started/install): What Wain needs, how to download and install it on a Mac, Linux or Windows, what first launch sets up, how to sign in to your Wain account, and how to add an agent CLI. - [Your first session](https://www.wainhq.com/docs/get-started/first-session): Attach a project, pick an agent, choose a worktree or your own checkout, send a prompt, and follow the agent's work. - [Updates and channels](https://www.wainhq.com/docs/get-started/updates): How Wain updates itself, how to join the beta channel, check for updates by hand, see what's new after an update, read the changelog, and keep the wain CLI and your agents current. ## Using Wain - [Agents](https://www.wainhq.com/docs/using-wain/agents): The six agent CLIs Wain runs (Claude Code, Codex, pi, fx, Grok Build and OpenCode), what each supports side by side, how to sign in to each, and what is particular to each one. - [The composer](https://www.wainhq.com/docs/using-wain/composer): Pick an agent, model, effort, fast mode and permission mode, start a worktree on any branch, switch a task to another agent, send while a turn runs, stop a turn, and read the More tab and how full the context is. - [Writing prompts](https://www.wainhq.com/docs/using-wain/prompts): Use slash commands, mention files with @, tag issues and pull requests with # and other sessions with &, open files, folders and images from a reply, attach images and files, dictate, and save a task as a draft. - [Permissions and questions](https://www.wainhq.com/docs/using-wain/permissions): Answer an agent's permission requests and questions, approve a plan, and know what happens to an open request after a restart. - [Worktrees](https://www.wainhq.com/docs/using-wain/worktrees): Run a session in its own copy of the repository, start it from any branch, see where it lives and what it starts from, and delete it when the work is done. - [Sessions and the sidebar](https://www.wainhq.com/docs/using-wain/sessions): Find sessions in the sidebar or its icon rail, read their marks, pin, settle, set aside, fork, rename and delete them, work in a session's tabs, Diff and Files, split tabs and sessions side by side, and move around from the keyboard. - [Bots](https://www.wainhq.com/docs/using-wain/bots): Make a bot you run your work from in one chat. It starts tasks in any project, hears back from each one, brings you what needs you, merges with one click, learns from corrections and runs its own scheduled checks. - [Pull requests](https://www.wainhq.com/docs/using-wain/pull-requests): See every open pull request involving you on the Pull requests page, filter and search it, read a PR's details, start a task or send it to a bot from a PR, and check, merge or reopen a session's own PR in its PR tab. - [Spaces](https://www.wainhq.com/docs/using-wain/spaces): Group projects into spaces, like work and personal, switch between them in the sidebar, and keep other spaces' sessions and notifications out of sight. ## wain CLI - [The wain command](https://www.wainhq.com/docs/cli): Install the wain CLI, keep it up to date, and see every command it has for sessions, bots, drafts, issues, the browser, media, sharing, servers and other machines. - [Sessions](https://www.wainhq.com/docs/cli/sessions): Start, list and message Wain sessions from the command line, with every flag for model, effort, agent, base branch, worktree, issues and fast mode, and hand tasks to bots, post merge and issue cards, and react as a bot. - [Bots](https://www.wainhq.com/docs/cli/bots): Make, list, message, rename and delete bots with wain bot, ask a bot a question and get its answer back, and schedule a bot's routines with wain bot routine. - [Orchestration](https://www.wainhq.com/docs/cli/orchestration): Have one agent fan work out into several sessions, on this machine or others, review its work with a second model, and pass messages between parent and child sessions. - [Drafts](https://www.wainhq.com/docs/cli/drafts): Save a task for later with wain draft, list saved drafts, and start or remove them. - [Issues](https://www.wainhq.com/docs/cli/issues): Tag a session with the Linear or GitHub issues its work is against using wain issue link, and remove tags with wain issue unlink. - [Browser](https://www.wainhq.com/docs/cli/browser): Drive a session's own browser with wain browser — open pages, read them, click and type, take screenshots and record videos — and what the app's browser shows on a new tab or a stopped dev server. - [Share](https://www.wainhq.com/docs/cli/share): Publish a session's dev server as a public link with wain share, list live links, and take them down. - [Servers](https://www.wainhq.com/docs/cli/servers): Make a machine a Wain server with wain server, give it a public address, pair an iPhone, link it to an org, and manage the list of machines it reaches with wain machine. ## Settings - [Settings](https://www.wainhq.com/docs/settings): Open Settings with the gear or ⌘, sign out of your Wain account, and find what each tab holds — appearance, spaces, servers, agents, transcription, integrations, shortcuts, Wain Island, the composer's buttons, break reminders, the changelog and About. - [Agents and accounts](https://www.wainhq.com/docs/settings/accounts): See which account Claude Code, Codex, pi, fx, Grok Build, OpenCode and gh are signed in as, sign in through a terminal or with an API key, reauthorize, sign out, hide an agent from the picker, and keep agents updated. - [Issues](https://www.wainhq.com/docs/settings/issues): Connect Linear with an API key or GitHub through gh, browse and filter issues on the Issues page, start a task on an issue or send it to a bot, see which tasks work on each issue, change status and priority, tag issues in prompts with #, and see the issues linked to a session. - [Dictation](https://www.wainhq.com/docs/settings/dictation): Download a speech model, pick a microphone, and dictate into the composer with ⌘D. Transcription runs on your own machine; audio never leaves it. - [Appearance](https://www.wainhq.com/docs/settings/appearance): Pick a theme and light, dark or system mode, cycle them with ⌘⌥T and ⌘⌥L, zoom the whole app with ⌘= ⌘- ⌘0, and choose where the side panel opens. - [Notifications](https://www.wainhq.com/docs/settings/notifications): How Wain tells you a session finished, needs permission or asked a question — a desktop banner, Wain Island, an in-app card, or nothing — plus bots' Waiting on you alerts, the ready-to-merge card, push alerts on iPhone, ⌘G, the sidebar marks and the dock badge. - [Shortcuts](https://www.wainhq.com/docs/settings/shortcuts): Every default keyboard shortcut in Wain, and how to rebind, remove or reset one in Settings → Shortcuts. ## Reference - [Remote access and sharing](https://www.wainhq.com/docs/reference/remote-access): Keep sessions running after you quit, connect the app to other machines, reach this Mac from another Mac or your iPhone, follow a Boat sandbox, share a dev server by public link, and update remote servers. - [Data on disk](https://www.wainhq.com/docs/reference/data): What Wain keeps in ~/.wain, bots and your sign-in included, what goes when you delete a session, the environment variables you can set, and where each agent keeps its own data. - [Privacy](https://www.wainhq.com/docs/reference/privacy): Wain's privacy policy. What the desktop app, Wain accounts and wainhq.com collect, where it is kept, what is never sent, and how to delete your account. - [Troubleshooting](https://www.wainhq.com/docs/reference/troubleshooting): Fixes for common problems — a missing or logged-out agent, a stuck session, a dead permission card, a refused wain command, silent dictation, missing notifications, gh, worktrees, rate limits, a dropped Remote access — and where the logs are. - [Terms](https://www.wainhq.com/docs/reference/terms): Wain's terms of service. The rules for using the Wain apps, wainhq.com and Wain accounts, what is yours, and what we promise and don't. ## Agent skills - [wain-docs](https://www.wainhq.com/docs/.well-known/agent-skills/wain-docs/SKILL.md): Read the Wain Docs instead of answering from memory. How to install and use Wain, the desktop app for coding agents. Use when a task involves Wain Docs: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://www.wainhq.com/docs/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://www.wainhq.com/docs/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://www.wainhq.com/docs/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://www.wainhq.com/docs/openapi.json. - [Agent skills](https://www.wainhq.com/docs/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://www.wainhq.com/docs/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://www.wainhq.com/docs/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://www.wainhq.com/docs/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://www.wainhq.com/docs/sitemap.xml): Every indexable page URL with its last-modified date.