Most AI assistants can write an email or return a JSON response. Far fewer can open a desktop application, click through a form, read what is on screen, and complete a task from start to finish. That is the promise of computer-use agents — AI systems that operate a real graphical desktop instead of only calling an API.
Bytebot is an open-source, self-hosted AI desktop agent that runs inside a containerized Linux environment. You give it a natural-language instruction, and it can interact with the applications available in its virtual desktop. Because the desktop runs on your own server, you can experiment with computer-use automation without handing every screenshot and document to a hosted agent service.
This guide explains what Bytebot is, how to deploy it with Docker, how to connect an LLM, and how to keep a desktop agent safely isolated.
What is Bytebot?
Bytebot combines an AI agent with a containerized Linux desktop. The model interprets your instruction, observes the desktop, and chooses actions such as moving the mouse, clicking controls, typing text, or opening an application. The result is closer to delegating a task to a remote computer operator than chatting with a text-only assistant.
Typical use cases include:
- Filling repetitive web forms with information you provide
- Downloading, renaming, and organizing files
- Testing a website through a real browser session
- Operating legacy software that has no API
- Researching information across multiple desktop applications
- Demonstrating computer-use agents in a safe lab
- Building an automation workflow around an existing GUI-only tool
Bytebot is not a replacement for a normal server-side workflow. If an application has a stable API, an API client is faster, cheaper, and easier to audit. The desktop agent is valuable when the interface itself is the only practical integration point.
Why self-host a desktop agent?
Computer-use systems process more sensitive data than ordinary chatbots. Screenshots can contain passwords, private messages, customer records, and browser sessions. A self-hosted deployment gives you control over where the desktop, files, screenshots, and model requests are processed.
Self-hosting also makes the environment reproducible. You can create a clean desktop with only the applications needed for a task, discard it after testing, and keep your personal workstation away from experimental automation.
There are trade-offs. You are responsible for updates, access control, backups, and model costs. A local model may need substantial RAM or a GPU, while a hosted model sends the agent’s observations to an external provider. Treat Bytebot as an automation server with a powerful interface — not as a harmless chatbot.
Prerequisites
You need:
| Requirement | Recommendation |
|---|---|
| Docker Engine | 24 or newer |
| Docker Compose | v2.20 or newer |
| Memory | 4 GB minimum, 8 GB recommended |
| CPU | 2 cores or more |
| LLM provider | An API-compatible model or local Ollama |
| Access | Private network or authenticated reverse proxy |
For a first deployment, use a VPS or homelab machine that does not contain your personal browser profile. Read the Docker basics guide if Compose is new to you.
Deploy Bytebot with Docker
Clone the official repository and move into the Docker directory:
git clone https://github.com/bytebot-ai/bytebot.git
cd bytebot
The project provides Compose configurations for a standard deployment. Start the default stack:
docker compose -f docker/docker-compose.yml up -d
Check the containers while the desktop services start:
docker compose -f docker/docker-compose.yml ps
docker compose -f docker/docker-compose.yml logs -f
The first start can take longer than later starts because the images and desktop components need to initialize. Follow the current installation instructions in the repository for the exact web interface port and environment variables, since those values can change between releases.
Do not expose an unconfigured agent directly to the public internet. Bind the web interface to localhost or put it behind a private network first.
Connect an AI model
Bytebot needs a model that can reason about desktop screenshots and select computer actions. You generally have two options:
- Hosted model — easiest to start, but screenshots and task context leave your server.
- Local model — stronger privacy, but requires compatible vision and tool-use capabilities plus enough compute.
For multiple providers, Bytebot’s documentation describes a proxy-based Compose setup that includes LiteLLM. This fits well with a self-hosted stack: one OpenAI-compatible endpoint can route requests to a hosted provider, Ollama, or another model backend.
A simplified environment pattern looks like this:
# Keep this file private and never commit it
MODEL_NAME=your-computer-use-model
OPENAI_API_KEY=replace-with-a-secret
OPENAI_BASE_URL=https://api.example.com/v1
The exact variable names depend on the Bytebot release and selected Compose file. Check the repository’s example environment file before starting the containers. Restart after changing configuration:
docker compose -f docker/docker-compose.yml up -d --force-recreate
If you already run LiteLLM, point Bytebot at that internal endpoint instead of scattering provider keys across every service.
Your first safe task
Start with a task that has no external side effects. For example:
Open the file manager, list the files in the Downloads folder, and report their names. Do not delete, move, or upload anything.
This verifies that the agent can see the desktop and interact with applications without giving it permission to change important data.
Next, try a reversible task:
Create a new text file named bytebot-test.txt in the home directory containing the words “automation test”. Do not access any other folder.
Keep the first prompts narrow. Specify the allowed application, directory, and final state. Avoid instructions such as “clean up my computer” because an agent may interpret them more broadly than you intended.
Security hardening
A desktop agent should be treated like an untrusted process with access to tools. Use these controls before real workloads.
Isolate the container
Do not mount your entire home directory. Give Bytebot a dedicated workspace instead:
mkdir -p ~/bytebot-workspace
Mount only that directory if the project’s Compose configuration supports custom volumes. Never mount /, /home, the Docker socket, SSH keys, or cloud credential directories unless you fully understand the consequences.
Keep it off the public internet
Bind the service to loopback or an internal Docker network. If remote access is needed, use a VPN such as Tailscale or an authenticated reverse proxy. HTTPS alone does not replace login protection.
Use a dedicated account
Run the service with a non-root user where supported. Use a separate model/API key with a low spending limit. Do not reuse keys that have account-wide administrative access.
Require confirmation for side effects
Human approval should be required before sending email, submitting a form, deleting files, making purchases, or publishing content. Test the confirmation behavior with a harmless task before trusting the agent.
Log and review actions
Keep container logs and review the agent’s screenshots and action history. If you cannot explain what the agent did, do not run it against production data. A short audit trail is more useful than a vague success message.
Practical workflows
GUI-only internal tools
Some business tools have no API but expose all functionality through a browser. Bytebot can operate a dedicated account in an isolated desktop and perform repetitive navigation. Keep the account permission-limited and require confirmation before final submission.
Website testing
A desktop agent can test flows that ordinary HTTP checks miss: opening a menu, filling a form, uploading a file, and verifying what a user sees. For deterministic regression tests, Playwright remains a better choice. Use Bytebot for exploratory testing and flows that are difficult to script.
Document processing
Combine Bytebot with a private document stack. For example, use the desktop agent only to download a document into a controlled workspace, then pass it to Stirling PDF for OCR or conversion. Keep the workspace temporary and delete files after the workflow completes.
Automation orchestration
n8n can trigger a task, call a service endpoint, and route the result to a notification channel. Start with read-only workflows and add write access one operation at a time.
Bytebot vs traditional automation
| Task | Best tool |
|---|---|
| Stable REST or GraphQL integration | API client |
| Repeatable browser regression tests | Playwright |
| GUI-only application with changing screens | Desktop agent |
| Scheduled data transformation | n8n or a script |
| Sensitive local document processing | Self-hosted CLI/service |
| Exploratory computer-use research | Bytebot |
The strongest architecture is usually hybrid. Use APIs and deterministic scripts for predictable work, and call the desktop agent only for the last mile where no reliable interface exists.
Updating and troubleshooting
Pull updates carefully and read the release notes before recreating the stack:
cd ~/bytebot
git pull
docker compose -f docker/docker-compose.yml pull
docker compose -f docker/docker-compose.yml up -d
Useful diagnostics:
docker compose -f docker/docker-compose.yml ps
docker compose -f docker/docker-compose.yml logs --tail=200
docker system df
If the agent performs the wrong action, reduce the prompt scope, remove unnecessary files from the desktop, and try a stronger computer-use model. If the desktop is slow, check memory pressure before increasing model context. If the browser session cannot start, verify that the container has enough shared memory and that the selected Compose profile includes all desktop services.
FAQ
Does Bytebot run completely locally?
The desktop and orchestration can run on your machine. Whether the reasoning is local depends on the model provider you configure. A hosted model still receives the observations needed to complete the task.
Can I use Ollama?
Potentially, if the selected local model supports the required vision and tool-use behavior. Compatibility and quality vary, so verify the current Bytebot and model documentation rather than assuming that every Ollama model can control a desktop.
Is it safe to give Bytebot my main browser session?
No. Use a dedicated browser profile and isolated account. A computer-use agent should never receive unrestricted access to personal sessions, password managers, banking, email, or SSH credentials.
Does Bytebot replace Playwright?
No. Playwright is more reliable for deterministic browser automation and CI. Bytebot is useful when a human-like desktop interaction is easier than defining every selector and state transition.
Can it run on a small VPS?
The container may start on a small VPS, but desktop rendering, screenshots, and model inference need memory. Allocate at least 4 GB and monitor resource use before running concurrent tasks.
Final thoughts
Bytebot is an interesting next step beyond self-hosted chat: an AI agent that can operate a controlled computer. Its value is not that it replaces every script. Its value is that it can bridge the awkward gap between a natural-language request and software that has no API.
Deploy it as a lab first. Isolate the desktop, use a dedicated account, keep secrets out of mounted volumes, and require confirmation for irreversible actions. With those boundaries in place, Bytebot gives homelab owners a practical way to explore computer-use automation while keeping the infrastructure under their control.