# devmachine > devmachine turns a VPS into workspaces you develop in: one account per project, each with its own tools, logins and coding agent. ## Docs - [Getting started](https://mydevmachine.sh/getting-started.md): devmachine sets up a machine for you to code on: a VPS you rent, or a Linux box or Mac you already have. Each project or client gets its own account on the machine, called a workspace, with its own tools and logins. - [Set up devmachine with a coding agent](https://mydevmachine.sh/agent-setup.md): This page is for a coding agent — Claude Code, Codex, Cursor or any other — that a person asked to set devmachine up for them. If you are that agent, follow it in order. Talk to the person in their language, ask one question at a time, and never guess an answer only they know. - [Day to day](https://mydevmachine.sh/day-to-day.md): Once your server is set up, you rarely type devmachine commands yourself. You ask your coding agent, from whatever you are working on. - [Upgrade](https://mydevmachine.sh/upgrade.md): devmachine has three things that can be out of date: the CLI on your computer, the packages release your configuration pins, and the skills that teach your coding agent the CLI. One command brings all three up to date: - [Supported systems](https://mydevmachine.sh/supported-systems.md): devmachine deals with two kinds of computer, and they have different lists: - [Changelog](https://mydevmachine.sh/changelog.md): What changed in each release of the CLI and the macOS app, newest first. App releases are headed App vX.Y.Z. Only changes you can see are here; tests, CI and internal work are left out. The full list of commits for each CLI version is on the GitHub releases page. - [Machines and workspaces](https://mydevmachine.sh/concepts/machines-and-workspaces.md): A machine is a server, with its own address and login. A workspace is one person's account on a machine — usually the thing you actually work in day to day. - [Configuration](https://mydevmachine.sh/concepts/configuration.md): Your configuration is a folder of files that lists your machines, your workspaces, and what's installed where. Look at it with: - [Packages](https://mydevmachine.sh/concepts/packages.md): A package adds something to your server or to a workspace: Claude Code, Docker, your GitHub login. - [Credentials](https://mydevmachine.sh/concepts/credentials.md): A credential is a tool being signed in: gh, claude, a DNS provider's token. See what's signed in, and what's missing, with: - [DNS](https://mydevmachine.sh/concepts/dns.md): devmachine dns points a domain name at your server, so people can reach it by name instead of a bare IP address. - [Publishing](https://mydevmachine.sh/concepts/publishing.md): Two ways to reach a port running on a machine: expose puts it on the internet, tunnel reaches it only from your computer. Neither is the default — you pick based on who should reach it. - [Reaching your server](https://mydevmachine.sh/concepts/reaching-your-server.md): After setup, devmachine reaches your server at its public address, with a key only you have. That is enough to start. This page covers three ways to do more: SSH aliases, so a workspace is reachable by name from any terminal or editor; a private network, so your server is reachable even when the public address is not; and private access to apps you do not want on the internet. - [Tailscale and other private networks](https://mydevmachine.sh/concepts/private-networks.md): A private network gives your server a second address that only your own devices can reach. It is not a replacement for the public address setup gives you — it is a backup that keeps working when the public one has trouble, and a way to reach things you never want on the internet at all. - [Agent Skills](https://mydevmachine.sh/concepts/agent-skills.md): Write your agent skills once, in a package in your configuration folder. Every workspace that uses the package gets the same skills on the next devmachine sync — Claude Code, Codex, Pi, OpenCode, Antigravity, Kimi Code, and Cline all read them. Your own computer gets them with devmachine skills add --package . Edit one skill, sync again, and the change reaches every workspace and your computer alike, from one place. - [Widgets](https://mydevmachine.sh/concepts/widgets.md): The app's Home is a canvas of widgets: a clock, a summary of your sessions, your machines, the usage of each coding agent. You move them, resize them, minimize them, and add or remove them. Where each one sits is kept in a plain file, so the app, the CLI and your coding agent can all change it. - [SSH: logging in and knowing it is your server](https://mydevmachine.sh/how-it-works/ssh.md): SSH checks both sides with different keys. Your key proves who you are to the server. The server's host key proves which machine answered you. - [Addresses and fallback](https://mydevmachine.sh/how-it-works/addresses-and-fallback.md): A machine can answer on more than one address: - [Choosing a target](https://mydevmachine.sh/how-it-works/choosing-a-target.md): With one machine set up, a command uses it. With several, a command that acts on a server needs --machine: - [Why nothing is embedded in the binary](https://mydevmachine.sh/how-it-works/why-nothing-is-embedded.md): The CLI ships with no packages built in. Every package — even the ones every machine gets — is fetched from a pinned release of github.com/mydevmachine/packages, checked against a checksum, and cached. - [Why a login cannot be automated](https://mydevmachine.sh/how-it-works/why-a-login-cannot-be-automated.md): It is the first question everybody asks, so here is the answer before you go looking. - [Sharing a login](https://mydevmachine.sh/how-it-works/sharing-a-login.md): One GitHub account usually serves every workspace on a machine. Logging into it six times is six chances to end up on six different accounts, so the login happens once and the result is copied. - [DNS providers](https://mydevmachine.sh/how-it-works/dns-providers.md): Every fact here exists so you learn it from this page, not by damaging a zone. Read it before you touch a real one. - [Setting up a server for the first time](https://mydevmachine.sh/how-it-works/trust-bootstrap.md): Setting up a server you have never logged into is the hardest moment this CLI handles, and the first thing a new user hits. This page explains what devmachine setup does, and why the steps run in this order. - [Password login, account by account](https://mydevmachine.sh/how-it-works/password-login.md): setup and machines add turn SSH password login off once the key is proved. On a server that only you reach, that is the whole story: the key is the only way in, and a password nobody can guess is better than one somebody might. - [Scheduled tasks](https://mydevmachine.sh/how-it-works/scheduled-tasks.md): devmachine scheduled runs a shell command, or a prompt for a coding agent, in a folder of a workspace, on a schedule: once, every hour, every day, on weekdays, every week or every month. The macOS app shows the same tasks on its Scheduled page. For examples and how to set one up, see the scheduled tasks guide. - [Your computer as a machine](https://mydevmachine.sh/how-it-works/your-computer-as-a-machine.md): A machine can declare self: true: your own computer, the one running the CLI. This page explains why that exists, why it is called self and not local, and what changes about sync and setup. - [What the CLI knows about a machine](https://mydevmachine.sh/how-it-works/what-the-cli-knows-about-a-machine.md): setup, sync and doctor already connect to a machine. While they are there, they read what it runs — uname, /etc/os-release, swvers on a Mac, where ansible-playbook is — in one extra command, and keep the answer in /state/machines/.json. devmachine machines show prints it without connecting, and devmachine --format json machines show gives it to a script or an agent under observed. devmachine machines rm deletes the file with the machine, so a new machine that reuses the name does not inherit what the old one ran. - [What a machine needs](https://mydevmachine.sh/how-it-works/what-a-machine-needs.md): devmachine runs Ansible on the machine itself, so every machine needs a few things before the first sync. This page lists them, says which ones the CLI installs and which only you can do, and explains why installing them needs its own yes. - [One package on many systems](https://mydevmachine.sh/how-it-works/packages-on-many-systems.md): A machine runs Debian, Ubuntu, Arch Linux or macOS. A package is written once for all of them: never gh-debian and gh-arch. It carries a file per system only where that system really differs, and says in platforms which systems it runs on. This page is for whoever writes a package: how the built-in packages do it, and the traps they already hit. - [Where a machine is](https://mydevmachine.sh/how-it-works/machine-location.md): Every machine has a location: where it is, such as hostinger, home, office or bedroom. It changes nothing about how the CLI reaches the machine. It is there so a view of your machines — the macOS app's network map, or your own script reading machines list --format json — can group them by place. - [Versioning your configuration](https://mydevmachine.sh/how-it-works/versioning-your-configuration.md): devmachine setup git turns / into a git repository, so it can live in a private remote, be reviewed, and be restored. It never runs on its own. - [Chats](https://mydevmachine.sh/how-it-works/chats.md): devmachine chat talks to the coding CLI you are already logged in to, claude or codex, on one of your workspaces or on this computer. The macOS app's Chats mode, its quick panel and the Ask widget all go through it, and so can a terminal. - [Why a published app lives in the configuration](https://mydevmachine.sh/how-it-works/published-sites.md): expose add used to write a Caddy file straight onto the machine and reload Caddy. It worked, but it left the only record of the site on the machine: rebuild from the configuration, and the sites expose had written never came back. - [What sync removes](https://mydevmachine.sh/how-it-works/what-sync-removes.md): sync only removes a file it recorded writing. Never a guess, never a whole directory swept clean — one path, remembered, removed once the plan stops writing it. - [Syncing one workspace](https://mydevmachine.sh/how-it-works/syncing-one-workspace.md): devmachine sync --workspace applies one workspace and nothing else. It finds the machine the workspace lives on, so --machine is not needed. On a machine with many workspaces, a full sync runs every package of every workspace; this runs only the packages of the one you name. - [One sync per machine](https://mydevmachine.sh/how-it-works/one-sync-per-machine.md): Only one sync runs on a machine at a time. A second one, from another terminal, another computer, or the app's Prepare button, stops at once with: - [How an upload lands](https://mydevmachine.sh/how-it-works/uploads.md): devmachine upload exists so an app or an agent can hand a file to a workspace and get back a path it can use. Each rule below serves that. - [How a download lands](https://mydevmachine.sh/how-it-works/downloads.md): devmachine download exists so an app, an agent or a person can take a file off a workspace without knowing how to reach it. Each rule below serves that. - [What a new machine starts with](https://mydevmachine.sh/how-it-works/what-a-new-machine-starts-with.md): setup and machines add write a new machine with one package, essentials. It installs nothing itself; it pulls in the packages almost every server wants: - [Why widgets come from packages](https://mydevmachine.sh/how-it-works/widgets-come-from-packages.md): A widget you pick from the gallery comes from a package: the pinned packages release, or a package in your configuration folder. There is no widget store, no folder of loose widgets, and no copy inside the app. The one other way is to write a widget straight into a board (engine 1.1), which is how you or your agent make a one-off; one that runs something waits for your approval. - [Why a widget an agent wrote waits for you](https://mydevmachine.sh/how-it-works/why-an-agent-written-widget-waits.md): A board is a plain file in your configuration folder, and that is on purpose: your coding agent can add a widget to Home as easily as you can. It also means anything that can write that file can put a command on your Home. So a widget written in a board that runs something — a command, a prompt or a session — shows Allow and Deny instead of running, until you say yes. - [Where a public widget comes from, and why it asks](https://mydevmachine.sh/how-it-works/where-a-public-widget-comes-from.md): Anybody can publish a package with widgets in a git repository, and you can install it with one command: - [What runs in the menu bar](https://mydevmachine.sh/how-it-works/what-runs-in-the-menu-bar.md): The menu bar item is two boards: the title you always see (menubar.yml) and the popover that opens when you click it (menubar-panel.yml). They run at different times, on purpose. - [Choosing and editing a widget](https://mydevmachine.sh/how-it-works/choosing-and-editing-a-widget.md): A widget can let you pick what it shows: which machines, which coding agent. The widget only declares the input; the app draws the chooser. This page says where the choices come from and why a wrong one never breaks a board. - [Why a widget is as tall as what it shows](https://mydevmachine.sh/how-it-works/why-a-widget-is-as-tall-as-what-it-shows.md): On Home, a widget used to be a box of a fixed size. A one-line summary sat in a box 160pt high, and no preset was shorter than that. Engine 1.7 turns this round: a widget whose view has a natural height is as tall as its content, and a height you set can only make it shorter. This page says why it works this way. - [A prompt widget's permission mode](https://mydevmachine.sh/how-it-works/a-prompt-widgets-permission-mode.md): A prompt widget asks a coding agent a question and shows the answer. By default the coding agent answers without using tools, so a widget asked to search the web says it has no permission to. permissionmode lets the widget use them. This page says why it looks the way it does. - [Updating](https://mydevmachine.sh/how-it-works/updating.md): devmachine update does five things in a row. Most of what it does is plain; these are the parts that are not. - [The CLI's log](https://mydevmachine.sh/how-it-works/the-cli-log.md): The CLI keeps its own log at /logs/devmachine.log. devmachine logs path prints where that is. When setup, sync or another command that changes a machine fails, the last line it prints says where too: - [Session indicators](https://mydevmachine.sh/how-it-works/session-indicators.md): devmachine sessions lists the tmux sessions of each workspace. For each session it says whether the agent in it is busy and whether it wants you. Both are best guesses from what tmux shows, not facts from the agent. - [Commands](https://mydevmachine.sh/reference/commands.md): Every command accepts: - [The package format](https://mydevmachine.sh/reference/package-format.md): A package is an Ansible role plus one extra file, package.yml. Nothing is translated on the way to the machine: what you write is what runs, so a failure points at the exact line you wrote. - [The DNS provider contract](https://mydevmachine.sh/reference/dns-provider-contract.md): What a DNS provider's entrypoint is called with, and what it must answer back. Follow this page and the CLI works with your provider on the first try; guess, and it does not. - [The network package contract](https://mydevmachine.sh/reference/network-package-contract.md): A network package makes a private network reachable through devmachine without the CLI knowing the product. It declares a network: block and ships up to three scripts. This page says what each one gets and what it must give back. - [The widget format](https://mydevmachine.sh/reference/widget-format.md): A widget is a folder in a package with one file in it, widget.yml. It says where the data comes from and how the app draws it. There is no code in a widget. See Widgets for what a widget is, and why widgets come from packages. - [Settings](https://mydevmachine.sh/reference/settings.md): Every variable the published packages accept, and what each one defaults to. - [App keyboard shortcuts](https://mydevmachine.sh/reference/app-keyboard-shortcuts.md): Every shortcut in the macOS app, grouped by where you use it. Each mode and each command below is also in the command palette (⌘K) and in the app's menu bar menus. ⌘? shows the main ones inside the app. - [All guides](https://mydevmachine.sh/guides.md): Real setups, done in a few steps. Each guide says what you need and how long it takes, then shows the commands two ways: by hand, and as one request to your coding agent. The why lives in the concept pages it links to. - [Your first devmachine, explained](https://mydevmachine.sh/guides/your-first-devmachine.md): Install devmachine, connect a server and open your first workspace, one command at a time. - [Try it on your own computer first](https://mydevmachine.sh/guides/a-local-vm-with-lima.md): Try devmachine on a virtual machine on your own computer before you pay for a server. - [An old Mac as a machine](https://mydevmachine.sh/guides/an-old-mac-as-a-machine.md): Turn an old Mac mini or MacBook, Intel or Apple Silicon, into a machine for your workspaces. No VPS to rent. - [Express site with TLS](https://mydevmachine.sh/guides/express-site-with-tls.md): Run an Express app in a workspace and serve it at your own domain, with HTTPS. - [Docker site on 8080](https://mydevmachine.sh/guides/docker-site-on-8080.md): Run a site in a Docker container and serve it at your own domain, with HTTPS. - [Next.js app at your own domain](https://mydevmachine.sh/guides/nextjs-site-with-tls.md): Build a Next.js app in a workspace, run its production server, and serve it at your own domain with HTTPS. - [FastAPI app at your own domain](https://mydevmachine.sh/guides/fastapi-with-tls.md): Run a FastAPI app in a workspace with uv and serve it at your own domain, with HTTPS and its API docs. - [LibreChat, your own AI chat ecosystem](https://mydevmachine.sh/guides/librechat.md): Run LibreChat with Docker Compose on your server: one chat app for many AI providers, agents and your files. - [Open WebUI on your own server](https://mydevmachine.sh/guides/open-webui.md): Run Open WebUI in Docker on your server, at your own domain, with you as its only admin. - [Expose a home server to the internet without port forwarding](https://mydevmachine.sh/guides/expose-home-server-without-port-forwarding.md): Give an old laptop, a mini PC or a homelab box a public HTTPS subdomain through your VPS. No port forwarding, works behind CGNAT, no tunnel service. - [Share an app on your computer with friends](https://mydevmachine.sh/guides/share-a-local-app-with-friends.md): Let a friend open an app that runs in a VM on your computer, at your own domain or at a Tailscale Funnel address. - [Claude Code, controlled from your phone](https://mydevmachine.sh/guides/claude-code-remote-control.md): Start Claude Code on your server and drive the same session from the Claude app on your phone. - [Start Claude from your phone](https://mydevmachine.sh/guides/start-claude-from-your-phone.md): Keep a Claude Code session waiting on your server, so your phone can open it with no SSH step. - [OpenClaw, in its own sandbox](https://mydevmachine.sh/guides/openclaw-in-its-own-sandbox.md): Run the OpenClaw agent around the clock in a workspace of its own, away from your laptop. - [Keep your sessions running](https://mydevmachine.sh/guides/keep-sessions-running.md): Close the laptop, and Claude Code keeps working on the server inside tmux. - [Share a session](https://mydevmachine.sh/guides/share-a-session.md): Let someone watch, or type into, one of your tmux sessions for an hour, then they are out. - [A Claude that never sleeps](https://mydevmachine.sh/guides/claude-that-never-sleeps.md): Turn on Remote Control with /rc and reach a running Claude Code session from your phone or Claude Desktop. - [Scheduled tasks: work that runs on its own](https://mydevmachine.sh/guides/scheduled-tasks.md): Have Claude, Codex or a plain command do recurring work in a workspace on a schedule: a monthly briefing, your standup, release notes, a nightly backup. - [One consultant, three startups](https://mydevmachine.sh/guides/one-consultant-three-startups.md): One server, one sandbox per client: separate stacks, logins and agents that never mix. - [Hermes Agent, in its own sandbox](https://mydevmachine.sh/guides/hermes-agent-in-its-own-sandbox.md): Run Nous Research's Hermes Agent always on, in a sandbox of its own. - [Agno AgentOS with a control plane](https://mydevmachine.sh/guides/agno-agentos-with-control-plane.md): Serve Agno AgentOS and its control plane dashboard, each at its own subdomain with HTTPS. - [wuzapi, as your own package](https://mydevmachine.sh/guides/wuzapi-as-your-own-package.md): Write a WhatsApp API once as your own package, then run it on two machines. - [Log in with your 1Password SSH key](https://mydevmachine.sh/guides/log-in-with-1password.md): Keep devmachine's SSH key in 1Password and approve each use with Touch ID. - [Pi as your coding agent](https://mydevmachine.sh/guides/pi-coding-agent.md): Install the Pi coding agent in a workspace and use it for everyday work on your server. - [opencode as your coding agent](https://mydevmachine.sh/guides/opencode.md): Install opencode in a workspace, try it on its free models, then connect your own provider. - [Antigravity CLI as your coding agent](https://mydevmachine.sh/guides/antigravity-cli.md): Install Google's Antigravity CLI in a workspace and sign in once, from your own terminal. - [Kimi Code as your coding agent](https://mydevmachine.sh/guides/kimi-code.md): Install Moonshot AI's Kimi Code CLI in a workspace and sign in with a device code. - [Cline as your coding agent](https://mydevmachine.sh/guides/cline.md): Install the Cline CLI in a workspace and connect it to your Cline account or your own API key. - [SSH or mosh?](https://mydevmachine.sh/guides/ssh-or-mosh.md): When to use ssh and when to use mosh, and the one firewall setting mosh needs. - [Claude 24/7 in Telegram](https://mydevmachine.sh/guides/claude-24-7-in-telegram.md): Message Claude Code from Telegram while it runs on your server around the clock. - [Send work to a Claude session from a POST/Telegram/WhatsApp using Channels](https://mydevmachine.sh/guides/claude-channels.md): Send work to a running Claude Code session from a webhook, Telegram or WhatsApp, and get an answer back. - [A simple agent with LangChain and OpenAI](https://mydevmachine.sh/guides/langchain-agent-with-openai.md): Build a small LangChain agent with two tools in a workspace, with its OpenAI key delivered by devmachine. - [Logins and secrets](https://mydevmachine.sh/guides/logins-and-secrets.md): See what a workspace is missing, then sign in and hand over tokens with credentials, login and secrets. - [Point your domain with Cloudflare](https://mydevmachine.sh/guides/cloudflare-dns.md): Give devmachine a scoped Cloudflare token, and expose add points your domain names for you. - [Point your domain with GoDaddy](https://mydevmachine.sh/guides/godaddy-dns.md): Give devmachine a GoDaddy Personal Access Token, and expose add points your domain names for you. - [Contribute to a Ruby on Rails project](https://mydevmachine.sh/guides/ruby-on-rails.md): Fork an open source Rails project into a workspace, run its tests and view its dev server privately. - [Your own Tailscale with Headscale](https://mydevmachine.sh/guides/headscale.md): Run your own Tailscale control server with Headscale and put your devmachine on it. - [One set of skills for every workspace](https://mydevmachine.sh/guides/shared-skills-for-every-workspace.md): Write an agent skill once as a package, and every workspace gets it on the next sync. - [Troubleshooting](https://mydevmachine.sh/troubleshooting.md): When something went wrong and you want help, these files say what happened. Find the folder with devmachine config path.