Deploying Oscar Agent on a Linux VPS Afdrukken

  • 61

Oscar Agent is a local AI agent written in Rust and extensible in Lua. It offers terminal chat, one-shot runs and chat gateways for Matrix with end-to-end encryption, Telegram and Discord. Tools run in a sandbox behind an approval gate, and dangerous commands always need a human confirmation.

This guide installs Oscar on an ArkHost Linux VPS running Debian 13, under a dedicated Linux account. It covers the basics only. The full Oscar documentation covers installation options, gateways, configuration and troubleshooting.

Choose a VPS plan

We recommend VPS XS: 2 vCPU, 4 GiB RAM and 50 GiB NVMe as the starting plan for one assistant. Consider VPS Nano only for light use, and VPS SM if you need more headroom. Check the current Linux VPS plans and prices before ordering. These plans are hosted in Stockholm, Sweden. Model subscriptions and API usage are separate from the VPS price.

Prepare the account

Start with a fresh Debian 13 VPS and administrative SSH access. As root, create an unprivileged account for the agent and switch to it:

adduser --disabled-password --gecos "" oscar
su - oscar

Do not give this account unrestricted sudo access. Keep unrelated customer data, root credentials and production keys out of that account. Run the rest of the commands as the oscar user, not as root.

Install Oscar

Oscar ships as a static, signed binary for x86_64 and aarch64 Linux. It needs no Python, Node or package manager at runtime. Download and run the installer:

curl -fsSLO https://oscar-agent.com/install.sh
sh install.sh

The installer verifies a minisign signature of the release manifest before installing, and places the binary in ~/.local/bin/oscar. Use --version TAG to install a specific release.

Connect a model provider

oscar setup

The wizard asks for a provider, an API key and a model, then verifies the connection and saves it. Supported providers are OpenCode Go, OpenRouter, OpenAI-compatible endpoints and Anthropic. There is no default provider, and the VPS does not include model access.

Oscar keeps its files in ~/.oscar. Settings go in config.toml, which holds no secrets. API keys go in credentials.env, readable only by the oscar user. Check the environment and run a first task:

oscar doctor
oscar run "Reply with: Oscar is working" --workspace .

Run oscar on its own to open the full-screen chat.

Run a chat gateway

The gateway runs Matrix, Telegram and Discord side by side in one process. Oscar answers only allowlisted users, and you approve actions in chat with reactions. Test it in the foreground with oscar gateway serve, then write a systemd unit so it runs as a service:

oscar gateway install
oscar status
oscar logs gateway -f

Bot accounts, allowlists and service options are described in the documentation.

Back up and update

oscar backup
oscar update --check
oscar update

The backup is a tar archive of the Oscar home directory, including credentials. Store it off the server and restrict access. Restore it with oscar restore FILE.

Updates are verified and keep the previous binary. They never run by themselves. Use oscar update --rollback to return to the previous version.

For everything beyond this basic setup, see the Oscar Agent manual.


Was dit antwoord nuttig?

« Terug

WHOIS Information

×
Loading WHOIS information...