Self-hosted app·Developer tools, backends and AI
Leon hosting on a VPS
in Panama City.
Leon hosting on a 4 vCPU / 4 GB VPS in PTY1, Panama City: Node.js 24 install, auth and TLS, the model choice and real costs from $12.99/mo.
- Node.js
- Python
- Docker
- Debian
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/05
What Leon is,
and the state it is in.
Leon is an open-source personal assistant by Louis Grenard, released under the MIT licence, with a TypeScript core and Python services beside it. Its first code dates from 2017 and it has been public since February 2019. The current rewrite, which the project calls the 2.0 Developer Preview, rebuilds it around declared tools, layered memory and an agent loop: Leon plans a task, calls tools, reads what comes back, and stops to ask you a question when it is missing something. It keeps a curated owner profile, daily and persistent memories and a searchable archive of past sessions, one isolated set per profile, and a single server can host several profiles. For the model it can use llama.cpp or SGLang locally, or eleven remote providers including OpenRouter, OpenAI, Anthropic, DeepSeek and Groq, each with its key in the profile's .env.
The project's status deserves a plain description. The 2.0 work lives on the develop branch, and a README notice dated 29 March 2026 says the new documentation is not ready and that the public docs site still mostly describes the legacy architecture; the older, pre-agentic Leon stays on master. On develop, package.json still carries the version string 1.0.0-beta.10+dev, and the latest tagged releases are component binaries (TCP Server 2.0.0 and Python Bridge 1.4.0, February 2026), not a core release. The maintainer writes that Leon is still built largely in his spare time. Pin a commit you have tested and upgrade on purpose; this is not software to leave on a nightly git pull.
02/05
Requirements and sizing.
Leon 2.0 requires Node.js 24 or later and installs with pnpm; Linux is a supported system. By default the server answers on port 5366 for the web app, the HTTP API and the Socket.IO interface, the Python TCP server sits on 127.0.0.1:5367, and the local providers are expected on 127.0.0.1:8080 (llama.cpp) and 127.0.0.1:30000 (SGLang). Only 5366 should ever face the outside, and only behind a TLS reverse proxy.
RAM goes to memory search before it goes to any model. Leon retrieves memories through QMD, which as packaged upstream runs three small GGUF models through node-llama-cpp: an embedding model of about 300 MB, a reranker of about 640 MB and a query-expansion model of about 1.1 GB. If all three are resident that is roughly 2 GB of weights before Node.js itself, a theoretical figure taken from the file sizes, since we have not yet confirmed which of them Leon keeps loaded. It rules out the 2 GB Starter plan and leaves Standard enough room for one profile.
| Plan | vCPU / RAM / NVMe | Transfer | Price | For Leon |
|---|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB | 10 TB | $6.99/mo | Too little RAM once memory search loads its models |
| Standard | 4 / 4 GB / 160 GB | 15 TB | $12.99/mo | One profile with a remote or self-run model; our recommendation |
| Pro | 6 / 8 GB / 320 GB | 20 TB | $22.99/mo | Several profiles, or local speech recognition and synthesis |
A local language model is a different conversation. The example in Leon's sample config is a 27-billion-parameter model in Q4_K_M quantization; at about 4.85 bits per weight the file weighs roughly 16 GB (theoretical), four times Standard's RAM and slightly more than the 16 GB of the Power plan. Where it does fit, CPU decoding is bound by memory bandwidth. Our EPYC 4004 dedicated servers have two DDR5 channels; at the platform's rated 5,200 MT/s that is about 83 GB/s, a ceiling of around five tokens a second for that model. The Titan's twelve channels at a rated 4,800 MT/s give about 460 GB/s and roughly 28 tokens a second. Both are theoretical upper bounds that assume modules at rated speed and ignore prompt processing, which an agent loop of up to 32 iterations per run does a great deal of.
Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.
03/05
Deploying it
on a Standard VPS.
Order Cloud VPS Standard with Debian 13 and log in as root.
Debian 13 packages Node.js 20.19, too old for Leon. Leon's README recommends Volta to fetch Node 24, but Volta's maintainers declared it unmaintained on 14 November 2025 and point to mise, so we use mise. Everything below runs as an unprivileged leon user:
# as root
apt update && apt install -y git curl build-essential caddy ufw restic
adduser --disabled-password --gecos "" leon
su - leon
# as leon
curl https://mise.run | sh
export PATH="$HOME/.local/bin:$PATH"
mise use -g node@24 pnpm@latest
git clone https://github.com/leon-ai/leon.git && cd leon
git checkout <the commit you tested>
mise exec -- pnpm install # also runs Leon's own setup, Python environments included
mise exec -- pnpm run check
mise exec -- pnpm run generate:profile-tokenLeon keeps each profile's settings in a config.yml and its secrets in a .env, modelled on config.sample.yml and .env.sample at the root of the repository; profiles live under ~/.leon/profiles/. On a server four settings need attention. llm.default takes a provider/model pair, with the provider's key in .env. client_interface.auth.enabled must be true, with the token you just generated stored as LEON_PROFILE_TOKEN. telemetry_enabled defaults to true, and we would set it to false. runtime.pulse_enabled controls Leon's autonomous queue of self-started tasks, which you may prefer off on a machine nobody watches.
llm:
default: openrouter/<vendor>/<model>
client_interface:
allowed_origins:
- https://leon.example.com
auth:
enabled: true
token:
env: LEON_PROFILE_TOKENRun Leon as a service and publish it through Caddy, which fetches the certificate and passes WebSocket traffic through without extra configuration:
# /etc/systemd/system/leon.service
[Unit]
Description=Leon personal assistant
After=network-online.target
Wants=network-online.target
[Service]
User=leon
WorkingDirectory=/home/leon/leon
ExecStart=/home/leon/.local/bin/mise exec -- pnpm start
Restart=on-failure
[Install]
WantedBy=multi-user.target# /etc/caddy/Caddyfile
leon.example.com {
reverse_proxy 127.0.0.1:5366
}systemctl daemon-reload && systemctl enable --now leon && systemctl reload caddy
ufw allow 22/tcp && ufw allow 80,443/tcp && ufw enable
ss -tlnp | grep -E ':5366|:5367'The last command shows which address Leon actually bound. Whatever it reports, the firewall keeps 5366 and 5367 closed from outside and Caddy stays the only way in.
On Docker: the develop branch ships no Dockerfile or compose file at its root, and the README documents no container install. The older Leon CLI offered a Docker setup for the 1.0 beta line, which is not the code you want today.
Two habits finish the job. Run Leon Satellite on your laptop (pnpm run start:satellite from a checkout there): it is an optional process that connects your device's enabled tools to a remote Leon server, so the reasoning runs in PTY1 while desktop and browser actions happen on your own machine, and those tools simply drop out when the laptop is closed. Then back up ~/.leon daily, since that is where the memory, owner profile and session archive live. restic speaks the S3 API and encrypts before upload, and a 250 GB object storage bucket at $1.99 a month is the natural target: restic -r s3:https://<endpoint>/<bucket>/leon backup ~/.leon, with the bucket's access keys and a restic password in the environment.
04/05
What it costs.
| Item | Per month |
|---|---|
| Cloud VPS Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer | $12.99 |
| Daily backups (+20 %) | +$2.60 |
| Object storage, 250 GB, for restic | +$1.99 |
| Total with both options | $17.58 |
Billed yearly, the VPS comes down by about 25 %, to roughly $9.75 a month (the yearly price divided by twelve). The line that is not on our invoice, and can easily exceed it, is the model provider: an agent loop sends long contexts many times per request, so read its per-token prices before choosing a model. We take crypto only (AVAX, BCH, BNB, BTC, DOGE, ETH, LTC, SOL, TRX, USDC, USDT and XMR), with prices and balances in US dollars. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, so a $100 top-up becomes $110 of balance, about eight and a half months of the bare Standard plan (theoretical). The unused paid part of a top-up is refundable within 14 days. The account itself is no-KYC hosting: an email address is enough. Everything else is on the pricing page.
05/05
Limits and what stays
your responsibility.
An assistant with a shell, a browser toolkit and an autonomous task queue acts from your server's IP address, and you answer for what it does there. Run it as the unprivileged user above, without sudo, so a bad tool call damages one profile rather than the system. Outbound port 25 is open on every VPS, which lets Leon send mail directly; our acceptable use policy applies to that mail and to everything else the agent does, so unsolicited bulk mail, scanning or entering systems you are not authorised to use, and credential stuffing are not allowed whether you or your agent issued the command. If you leave pulse_enabled on, read the session log now and then: tasks Leon starts on its own are still yours.
Hosting in Panama protects the server, not the data you send elsewhere. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Panama, while the mutual legal assistance treaty in force since 6 September 1995 still gives US prosecutors a route through Panamanian authorities; our page on foreign requests goes through what that means. A model provider based in the United States is under US law directly, and your prompts sit on its infrastructure, not ours. Leon's memory holds personal data about you and often about other people: Panama's Law 81 of 2019, implemented by Executive Decree 285 of 2021, applies in PTY1 (data protection in Panama), and since Panama has no EU adequacy decision, EU personal data needs safeguards such as the 2021 standard contractual clauses. Law 51 of 2009 requires telecommunications companies and other communication networks that provide the service to keep certain user data for six months; whether it applies to a hosting provider is a question for Panamanian counsel. The wider legal picture is on our offshore hosting page.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| TitanDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Titan |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions
people ask first.
Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.
Is there an official Docker image for Leon?
Not for the 2.0 Developer Preview. As of 5 November 2026 the develop branch has no Dockerfile or compose file at its root, and container installs belonged to the legacy 1.0 beta through the Leon CLI. On our VPS we install it natively under a dedicated user and run it with systemd, as above.
Can I run Leon with a local model on the VPS?
Not a useful one. The 27B model used in Leon's config examples is about 16 GB in Q4_K_M (theoretical), more than every VPS up to Power can hold, and CPU decoding on shared vCPUs would be slow even on the Ultra or Titan VPS. Use a remote provider, a llama.cpp server on GPU hardware you control, or a Titan dedicated server with its twelve memory channels.
Does my data stay in Panama?
What Leon stores does: memory, owner profile, session archive and configuration sit on the NVMe of your VPS in PTY1. What Leon sends to a remote model leaves with each request and is governed by that provider's location and terms. If that matters for your use, the model has to run on hardware you control.
Should I install master or develop?
develop if you want the agent, the layered memory and Satellite; that is where all current work happens. master is the older intent-based Leon, more settled and no longer where the project is heading. On develop, pin a commit and read the commit log before every upgrade.
Do I need to send identity documents to order?
No. An email address is enough to open an account, and payment is in crypto. Business customers paying in crypto are welcome too.
Sources
Every fact on this page, with its source
Checked 31 Oct 2026 unless noted.
Panamanian law and authorities
EU and other countries
Industry, providers and software
- Leon README (develop): 2.0 Developer Preview notice dated 29 March 2026, Node.js 24 requirement, install commands, port 5366, MIT licence, spare-time developmentgithub.com/leon-ai/leon
- Leon package.json (develop): version 1.0.0-beta.10+dev, Node.js ≥ 24.0.0, pnpm, generate:profile-token and start:satellite scriptspackage.json
- Leon config.sample.yml: ports 5366 and 5367, llama.cpp on 8080, SGLang on 30000, client auth off by default, telemetry_enabled: true, pulse_enabled, the 27B Q4_K_M exampleconfig.sample.yml
- Leon .env.sample: the eleven remote provider keys and LEON_PROFILE_TOKEN.env.sample
- Leon architecture notes: profile isolation, Leon Satellite, the 32-iteration agent checkpoint, QMD-backed memoryARCHITECTURE.md
- Leon identity notes: first code in 2017, active since February 2019LEON.md
- Leon releases: TCP Server 2.0.0 and Python Bridge 1.4.0 pre-releases, February 2026releases
- Leon CLI test workflow with a Docker end-to-end test, legacy 1.0 beta lineleon-cli tests.yml
- QMD README: the three GGUF models and their sizes, node-llama-cppgithub.com/tobi/qmd
- Volta declared unmaintained on 14 November 2025, migration to mise recommendedvolta-cli/volta issue #2080
- Debian 13 ships Node.js 20.19michael-prokop.at
Other references
Your server in Panama,
ready when you are.
Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.