# NeoDesk > NeoDesk is a remote desktop server you run yourself. It speaks the RustDesk protocol, so the normal RustDesk client connects to it, and one Go binary serves the ID server, the relay, the client API and a web console for the devices you look after. It is open source under AGPL-3.0. ## For AI agents Install NeoDesk on a server with one command: - Docker: the server and the web console in one container, from the published image. See [Install with Docker](https://docs.neode.sk/getting-started/docker.md). ```bash curl -fsSL https://neode.sk/install.sh | sudo bash ``` - Linux: one systemd service. Piped into bash like this, the script asks nothing and installs with the defaults. See [Install on Linux](https://docs.neode.sk/getting-started/linux.md). ```bash curl -fsSL https://neode.sk/neodesk.sh | sudo bash ``` Both print the address of the web console and the admin password at the end. In the docs every command is in a fenced block with its language, placeholders look like ``, and the text next to a block says what to put in. Tools for agents: - Scoped API token for agents: An admin makes it in the console under the account menu, API tokens: read only or read and write, with only the permissions picked for it and never more than its account, for at most a year, and optionally only from some addresses. See [the docs](https://docs.neode.sk/command-line/api-tokens.md). - `neodesk describe --json`: Prints every command of the neodesk command line as JSON: its arguments and flags, the permission it needs, whether it only reads, deletes something, runs something or answers with secrets, and the console route it calls. See [the docs](https://docs.neode.sk/command-line/neodesk.md). - `neodesk mcp`: Serves the commands of the neodesk command line as MCP tools over standard input and output, with an API token: by default only the commands that read and answer without secrets; `--allow-writes`, `--allow-exec` and `--allow-secrets` add more. See [the docs](https://docs.neode.sk/command-line/mcp.md). ## Docs as text Every docs page below is Markdown at the address shown. The same page as HTML is at that address without .md. The docs of one section are also in one file: - [Getting started](https://neode.sk/llms-getting-started.txt): 90 KB, 10 pages - [Using the console](https://neode.sk/llms-console.txt): 99 KB, 13 pages - [People and sign-in](https://neode.sk/llms-people.txt): 57 KB, 6 pages - [Running the server](https://neode.sk/llms-operations.txt): 105 KB, 9 pages - [Command line](https://neode.sk/llms-command-line.txt): 273 KB, 64 pages - [Development](https://neode.sk/llms-development.txt): 173 KB, 14 pages - [The project](https://neode.sk/llms-project.txt): 13 KB, 2 pages - [All docs](https://neode.sk/llms-full.txt): 809 KB ## Start here - [Source code](https://github.com/neodeskapp/neodesk): the repository, with the installers and the changelog ## Getting started Start here. What NeoDesk is, installing it with Docker, on Linux or on Windows, signing in for the first time and connecting the first RustDesk client. - [Introduction](https://docs.neode.sk/getting-started/introduction.md): What NeoDesk is, what it is made of, and what you need to run it. - [Install with Docker](https://docs.neode.sk/getting-started/docker.md): Run the server and the web console in one container from the published image, with the install script or a compose file. - [Docker on a Synology NAS](https://docs.neode.sk/getting-started/docker/synology.md): Run the published NeoDesk image in Synology's Container Manager, with the settings a NAS usually needs. - [Install on Linux](https://docs.neode.sk/getting-started/linux.md): Install the server and the web console as one systemd service with the neodesk.sh script. - [Install on Windows](https://docs.neode.sk/getting-started/windows.md): Install the server and the web console as a Windows service with the neodesk.ps1 script. - [First sign-in](https://docs.neode.sk/getting-started/first-sign-in.md): Sign in as admin, secure the account, set the address clients use, and find your way around the console. - [The setup guide](https://docs.neode.sk/getting-started/first-sign-in/setup-guide.md): The checklist a new install shows its first admin on the overview, its eight steps in order, when each step ticks itself, and how to hide it. - [Connect a RustDesk client](https://docs.neode.sk/getting-started/connect-a-client.md): Point a RustDesk client at your server with the four values from the Overview page. - [Set up many computers at once](https://docs.neode.sk/getting-started/connect-a-client/many-computers.md): Join a batch of computers with one invite link, or hand the stock RustDesk client its server settings from an install script. - [Move from a RustDesk server](https://docs.neode.sk/getting-started/migrate-from-rustdesk.md): Replace a RustDesk server (hbbs and hbbr) with NeoDesk and keep its key, so the RustDesk clients keep working without changes. ## Using the console The web console page by page: the overview, the device list, adding a computer with an invite, a device's details and how to connect to it, enrollment requests, quick support, remote desktop in the browser and the activity log. - [The overview page](https://docs.neode.sk/console/overview.md): What the first page after sign-in shows, from the things that need someone to the values a RustDesk client needs. - [The device list](https://docs.neode.sk/console/devices.md): Find, filter, sort and organize devices, act on several at once, and add RDP or VNC computers. - [Add a computer](https://docs.neode.sk/console/add-a-computer.md): Make an invite link that installs NeoDesk on a computer and joins it to your server, approved and in its folder. - [Device details and connecting](https://docs.neode.sk/console/device-details.md): The device panel tab by tab, how to edit a device, and the ways to connect to it. - [Enrollment requests](https://docs.neode.sk/console/enrollment.md): Decide which new devices may join the server, and approve or reject the ones that ask. - [Quick support](https://docs.neode.sk/console/quick-support.md): Help someone on a computer that is not set up, with a link that works once for one hour and needs no install. - [Remote desktop in the browser](https://docs.neode.sk/console/remote-in-browser.md): Control a device from a browser tab through the server, what that needs, and where it differs from the RustDesk app. - [Activity and audit log](https://docs.neode.sk/console/activity.md): The audit log, the server's own events, the security checks, reports and app usage, and who can see them. - [RDP and VNC targets](https://docs.neode.sk/console/remote-targets.md): Add computers that have no RustDesk client, set up the gateway the server reaches them through, and what a session can do. - [Unattended access and Wake-on-LAN](https://docs.neode.sk/console/unattended-access.md): Reach a device when nobody is at it, with a permanent password in the NeoDesk client or in RustDesk, and wake a sleeping computer from the server. - [Saved sign-in](https://docs.neode.sk/console/saved-sign-in.md): Keep a Windows account's name and password for a device, and let the browser viewer sign in with them at the computer's lock screen. - [MeshAgent devices](https://docs.neode.sk/console/meshagent.md): Let computers with MeshCentral's agent connect to the server, approve them, and use their terminal, files, port relays and power commands. - [CDAP devices](https://docs.neode.sk/console/cdap.md): Let sensors, controllers and agents connect over CDAP, see their values and controls, and send them commands. ## People and sign-in Who can sign in and what they can do: users, roles and permissions, two-factor sign-in, LDAP or Active Directory, single sign-on with OIDC, and organizations. - [Users and roles](https://docs.neode.sk/people/users-and-roles.md): Add, change, disable and delete console accounts, choose a role for each, and decide which devices people who are not administrators see. - [Permissions](https://docs.neode.sk/people/permissions.md): Change what a role may do, narrow console sections for one person or a user group with Panel access, and limit what they may do in remote sessions. - [Two-factor sign-in](https://docs.neode.sk/people/two-factor.md): Turn on sign-in codes from an authenticator app, sign in with them, use and renew recovery codes, and make two-factor sign-in mandatory. - [LDAP and Active Directory](https://docs.neode.sk/people/ldap.md): Let people sign in to the console with their directory user name and password, and give them roles from their directory groups. - [Single sign-on with OIDC](https://docs.neode.sk/people/oidc.md): Let people sign in to the console through an OpenID Connect identity provider, and give them roles from the groups the provider sends. - [Organizations](https://docs.neode.sk/people/organizations.md): Group people and devices per customer or site, share an address book with the members, and know what membership changes and what it does not. ## Running the server For the person who runs the server: configuration, ports and firewall, a reverse proxy with TLS, PostgreSQL, updating, backup and troubleshooting. - [Configuration](https://docs.neode.sk/operations/configuration.md): How the server reads its settings, where to set them for Docker, Linux and Windows, and the settings an operator changes most. - [Ports and firewall](https://docs.neode.sk/operations/ports.md): Which ports NeoDesk listens on, who connects to each, which to open to the internet, and firewall commands for Linux and Windows. - [Reverse proxy and TLS](https://docs.neode.sk/operations/reverse-proxy-tls.md): Give the web console HTTPS with Let's Encrypt on Docker, with nginx or Caddy in front, or with its own certificate, and check what clients get. - [PostgreSQL](https://docs.neode.sk/operations/postgresql.md): Run NeoDesk on PostgreSQL instead of SQLite, move an existing install over, and back up the database. - [Updating](https://docs.neode.sk/operations/updating.md): Update a Docker, Linux or Windows install, choose the release channel, use the console's Updates page, check the version and roll back. - [Backup and restore](https://docs.neode.sk/operations/backup.md): What to back up for each install type, what the console's Backup page covers, cold backups of the Docker volumes, restoring, and why the key file matters. - [Troubleshooting](https://docs.neode.sk/operations/troubleshooting.md): Logs, health checks, and what to check when the console does not open, sign-in fails, clients cannot connect, the key does not match or the relay fails. - [Hardening](https://docs.neode.sk/operations/security.md): The settings and steps that make a NeoDesk server on the internet safer, from TLS for the console to who may start sessions, and what each one changes. - [Monitoring](https://docs.neode.sk/operations/monitoring.md): Health checks for an outside monitor, the Prometheus metrics and who may read them, where audit entries go, and how long the server keeps its records. ## Command line The neodesk command line for scripts and AI agents: signing in with an API token, the MCP server for AI agents, and the reference of every command. - [The neodesk command line](https://docs.neode.sk/command-line/neodesk.md): Where the neodesk command is, signing in with an API token, the first commands to run, tables or JSON, and the exit codes scripts can test for. - [API tokens](https://docs.neode.sk/command-line/api-tokens.md): Make a token for a script, the neodesk command line or an AI agent, pick its permissions, use it with neodesk or curl, and revoke it. - [AI agents over MCP](https://docs.neode.sk/command-line/mcp.md): Connect an AI agent to the console with neodesk mcp, which tools it gets, the flags that add more, and which commands stay out on purpose. - [Command reference](https://docs.neode.sk/command-line/reference.md): Every command of the neodesk command line by group, the flags every command takes, its environment variables and its exit codes. - [neodesk account](https://docs.neode.sk/command-line/reference/account.md): 3 commands. You: the account and permissions the token acts with. - [neodesk activity](https://docs.neode.sk/command-line/reference/activity.md): 3 commands. What people did on devices: the activity agents report. - [neodesk agents](https://docs.neode.sk/command-line/reference/agents.md): 7 commands. NeoDesk agent releases, templates and installer files. - [neodesk api-tokens](https://docs.neode.sk/command-line/reference/api-tokens.md): 4 commands. API tokens for scripts, this command line and AI agents. - [neodesk attestation](https://docs.neode.sk/command-line/reference/attestation.md): 6 commands. The server's performance test and its badge. - [neodesk audit](https://docs.neode.sk/command-line/reference/audit.md): 4 commands. The audit log and the security overview. - [neodesk automation](https://docs.neode.sk/command-line/reference/automation.md): 13 commands. Alert rules, alerts, queued device commands and alert mail. - [neodesk backups](https://docs.neode.sk/command-line/reference/backups.md): 10 commands. Full backups, the backup schedule and restores. - [neodesk billing](https://docs.neode.sk/command-line/reference/billing.md): 27 commands. Billing: packages, contracts, sessions, reports and the clock. - [neodesk branding](https://docs.neode.sk/command-line/reference/branding.md): 17 commands. The console's look: logo, colors, profiles and fonts. - [neodesk cdap](https://docs.neode.sk/command-line/reference/cdap.md): 10 commands. CDAP devices, their widgets and commands. - [neodesk cdap-studio](https://docs.neode.sk/command-line/reference/cdap-studio.md): 10 commands. CDAP Studio flows. - [neodesk chat](https://docs.neode.sk/command-line/reference/chat.md): 2 commands. Chat search and files. - [neodesk client-branding](https://docs.neode.sk/command-line/reference/client-branding.md): 2 commands. Name, logo and links the desktop clients show. - [neodesk cross-platform](https://docs.neode.sk/command-line/reference/cross-platform.md): 3 commands. What each device platform supports. - [neodesk dashboard](https://docs.neode.sk/command-line/reference/dashboard.md): 6 commands. The numbers on the dashboard and the server status. - [neodesk dataguard](https://docs.neode.sk/command-line/reference/dataguard.md): 7 commands. Data guard policies and the events devices report. - [neodesk device-control](https://docs.neode.sk/command-line/reference/device-control.md): 7 commands. Screen, keyboard, mouse, clipboard and terminal of a NeoDesk agent. - [neodesk device-files](https://docs.neode.sk/command-line/reference/device-files.md): 6 commands. Files on a device with a NeoDesk agent. - [neodesk device-groups](https://docs.neode.sk/command-line/reference/device-groups.md): 3 commands. Device groups (manual and by tag). - [neodesk device-tokens](https://docs.neode.sk/command-line/reference/device-tokens.md): 6 commands. Tokens that let a new device join without approval. - [neodesk devices](https://docs.neode.sk/command-line/reference/devices.md): 31 commands. Devices: list, details, notes, tags, bans, connection settings. - [neodesk enrollment](https://docs.neode.sk/command-line/reference/enrollment.md): 7 commands. Who may join, and devices waiting for approval. - [neodesk fleet](https://docs.neode.sk/command-line/reference/fleet.md): 23 commands. Fleet tasks, workflows, compliance and resources. - [neodesk folders](https://docs.neode.sk/command-line/reference/folders.md): 6 commands. Folders that sort devices. - [neodesk generator](https://docs.neode.sk/command-line/reference/generator.md): 18 commands. The support client generator: bundles and builds. - [neodesk guest-links](https://docs.neode.sk/command-line/reference/guest-links.md): 3 commands. Guest links that let someone without an account connect. - [neodesk help-requests](https://docs.neode.sk/command-line/reference/help-requests.md): 3 commands. Help requests sent from devices. - [neodesk inventory](https://docs.neode.sk/command-line/reference/inventory.md): 2 commands. Hardware and software inventory of devices. - [neodesk invites](https://docs.neode.sk/command-line/reference/invites.md): 6 commands. Invites that add a computer to this server. - [neodesk keys](https://docs.neode.sk/command-line/reference/keys.md): 6 commands. The server's key, the client settings and the QR code. - [neodesk languages](https://docs.neode.sk/command-line/reference/languages.md): 9 commands. The console's languages and translations. - [neodesk mesh](https://docs.neode.sk/command-line/reference/mesh.md): 16 commands. MeshCentral devices, groups and recordings. - [neodesk network](https://docs.neode.sk/command-line/reference/network.md): 15 commands. Network checks: targets, monitoring, ping and port tests. - [neodesk organizations](https://docs.neode.sk/command-line/reference/organizations.md): 26 commands. Organizations with their users, devices and settings. - [neodesk pairing](https://docs.neode.sk/command-line/reference/pairing.md): 5 commands. Pairing codes for agents. - [neodesk panel-access](https://docs.neode.sk/command-line/reference/panel-access.md): 5 commands. Which console sections and client features each account may use. - [neodesk policies](https://docs.neode.sk/command-line/reference/policies.md): 10 commands. Organization policies and device attestation. - [neodesk registrations](https://docs.neode.sk/command-line/reference/registrations.md): 7 commands. Devices that asked to register. - [neodesk remote](https://docs.neode.sk/command-line/reference/remote.md): 1 command. Remote sessions in progress. - [neodesk remote-targets](https://docs.neode.sk/command-line/reference/remote-targets.md): 11 commands. RDP, VNC and SSH targets. - [neodesk reports](https://docs.neode.sk/command-line/reference/reports.md): 8 commands. Reports and trends. - [neodesk resource-control](https://docs.neode.sk/command-line/reference/resource-control.md): 10 commands. USB, disks, monitors and quotas on devices. - [neodesk restart](https://docs.neode.sk/command-line/reference/restart.md): 6 commands. Pending server restarts after a change. - [neodesk roles](https://docs.neode.sk/command-line/reference/roles.md): 5 commands. Roles and their permissions. - [neodesk scaling](https://docs.neode.sk/command-line/reference/scaling.md): 12 commands. Relay servers and scaling rules. - [neodesk server](https://docs.neode.sk/command-line/reference/server.md): 15 commands. The server: health, versions, resources, services and logs. - [neodesk settings](https://docs.neode.sk/command-line/reference/settings.md): 28 commands. Server settings: mail, sign-in, addresses, enrollment, sessions. - [neodesk setup-guide](https://docs.neode.sk/command-line/reference/setup-guide.md): 3 commands. The setup guide a new install shows its first admin on the overview. - [neodesk strategies](https://docs.neode.sk/command-line/reference/strategies.md): 7 commands. Strategies: settings pushed to desktop clients. - [neodesk support](https://docs.neode.sk/command-line/reference/support.md): 7 commands. Quick support sessions. - [neodesk tags](https://docs.neode.sk/command-line/reference/tags.md): 3 commands. Device tags. - [neodesk tenants](https://docs.neode.sk/command-line/reference/tenants.md): 12 commands. Tenants with their devices and users. - [neodesk tickets](https://docs.neode.sk/command-line/reference/tickets.md): 11 commands. Tickets with comments and attachments. - [neodesk toolkit](https://docs.neode.sk/command-line/reference/toolkit.md): 8 commands. Small network and text tools. - [neodesk transfers](https://docs.neode.sk/command-line/reference/transfers.md): 5 commands. File transfers between the console and devices. - [neodesk updates](https://docs.neode.sk/command-line/reference/updates.md): 16 commands. Server updates and the backups taken before them. - [neodesk user-groups](https://docs.neode.sk/command-line/reference/user-groups.md): 4 commands. User groups. - [neodesk users](https://docs.neode.sk/command-line/reference/users.md): 10 commands. Console accounts: create, change, disable, delete. - [Routes without a command](https://docs.neode.sk/command-line/reference/routes-left-out.md): The console routes the command line leaves out, by reason: routes for devices and clients, pages of the console, signing in and old addresses. ## Development For people who work on NeoDesk or build on it: contributing, building from source, the tests and checks, how the code fits together, releases, and the APIs and protocols. - [Contributing](https://docs.neode.sk/development/contributing.md): How to propose a change to NeoDesk, what a pull request needs, how commit messages look, and the policy on copyright and provenance of contributions. - [Building from source](https://docs.neode.sk/development/building.md): Build the neodesk-server binary with the web console built in, for your platform or another one, and the Docker images from a checkout. - [Tests and checks](https://docs.neode.sk/development/tests-and-checks.md): The Go tests, the web app's tests, the contract suite, the local gate that runs everything before a commit, and the repository's own checks. - [Architecture](https://docs.neode.sk/development/architecture.md): How the repository is laid out, what runs inside the one neodesk-server process, where the data lives, and the telemetry contract for NeoDesk's clients. - [Branches, versions and releases](https://docs.neode.sk/development/releasing.md): The main branch, how the product version is bumped, what the release workflows publish, and the checklist before a stable release. - [CI workflows](https://docs.neode.sk/development/ci.md): The GitHub Actions workflows of the repository, when each one runs, what it checks or publishes, and what to do when one fails. - [Translations](https://docs.neode.sk/development/translations.md): Where the web console's texts live, how to improve a translation or add a language, how to add a new text, and the check every language file has to pass. - [The installers](https://docs.neode.sk/development/installers.md): For work on the install scripts: what each one does, where it gets the server from, the rules every installer keeps, and how they are tested. - [RustDesk compatibility](https://docs.neode.sk/development/rustdesk-compatibility.md): How the server stays compatible with the stock RustDesk client, the checklist for a new RustDesk release, and what the upstream watch does. - [Clean-room provenance](https://docs.neode.sk/development/provenance.md): The policy for code and protocol schemas that talk to stock RustDesk clients, the clean-room workflow, and the release gate for clean-room claims. - [Security model](https://docs.neode.sk/development/security-model.md): What the server trusts and how the code protects each boundary: device identity, encryption, accounts, tokens, stored secrets and the gaps that remain. - [The HTTP API](https://docs.neode.sk/development/api.md): How a script or an integration signs in to the server's API, and the routes it can build on for devices, audit, keys, CDAP devices and MeshCentral agents. - [CDAP protocol](https://docs.neode.sk/development/cdap-protocol.md): The WebSocket protocol between a device or a bridge and the server's CDAP gateway, message by message, as the server implements it. - [CDAP SDKs and bridges](https://docs.neode.sk/development/cdap-sdks.md): What the Python and Node.js SDKs and the three reference bridges do, how to start one against a server, and what the console's flow builder does. ## The project The license and what the project does with your data. - [License](https://docs.neode.sk/project/license.md): NeoDesk's license, the AGPL-3.0, what it costs and where to get support, the trademark note and the third-party notices. - [Privacy](https://docs.neode.sk/project/privacy.md): What NeoDesk keeps on your server, and every host the server, the console and the installers contact, and when.