Self-hosted app·Developer tools, backends and AI
Open Source Routing Machine (OSRM) hosting
in Panama City.
Open Source Routing Machine (OSRM) hosting on a 4 vCPU / 4 GB VPS in Panama City: sizing, Docker setup for OSRM 26.10, costs from $12.99/mo and limits.
- OpenStreetMap
- Docker
- NGINX
- 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/06
Short answer.
Yes, OSRM runs well on our Cloud VPS Standard in PTY1, Panama City: 4 vCPU, 4 GB of RAM, 160 GB of NVMe and 15 TB of monthly transfer for $12.99 a month. That is the plan we would put a routing API for Panama, or for any single Central American country, on. What decides the plan is not query traffic but the memory used by the one-off preprocessing step. Serving Panama needs a small slice of 4 GB, building a graph for Mexico needs nearly all of it, and the whole planet needs more than any server we sell.
02/06
What OSRM is
and who runs it.
OSRM is a C++ routing engine built for OpenStreetMap data. Over HTTP it offers six services: nearest snaps a coordinate to the road network, route returns the fastest path, table computes a duration or distance matrix, match fits a noisy GPS trace to roads, trip solves a travelling-salesman tour with a greedy heuristic, and tile serves vector tiles carrying routing metadata. The code is under the BSD 2-Clause licence and maintained by the Project-OSRM community on GitHub. Releases now arrive about once a month and are numbered by year and month; when we checked on 5 November 2026, the current one was 26.10.0, tagged on 1 October.
The usual reason to run your own instance is volume. The public demo server, which FOSSGIS sponsors, is restricted to reasonable non-commercial use at no more than one request per second, with no guarantee of uptime or data freshness, and its profiles differ from the defaults shipped with osrm-backend. A dispatch tool in Panama City that recomputes a 50-stop matrix for each driver every few minutes is outside that policy on its first morning.

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/06
Requirements and sizing.
OSRM works in two phases with very different appetites. Preprocessing reads an .osm.pbf extract with osrm-extract, then runs either osrm-partition and osrm-customize (the Multi-Level Dijkstra pipeline, which the project recommends by default) or osrm-contract (Contraction Hierarchies, still faster for very large distance matrices). Serving is osrm-routed, which loads the resulting .osrm.* files into memory and answers on TCP port 5000. The project's reference figures, taken on v5.26 with the November 2021 planet, show the imbalance: a 61 GiB planet file peaked at 415 GiB of RAM during car extraction, produced about 300 GB of data files, and then needed around 123 GiB to serve. The wiki adds that requirements scale roughly linearly with input size, and that the foot profile needs more than car, with bicycle in between.
Scaled down along that line, those figures give the table below. Treat it as theoretical: small extracts carry fixed overheads that a straight ratio ignores, OSM has grown since 2021, and the code has changed a great deal since v5.26.
| Extract | .osm.pbf size | Car extract peak (theoretical) | RAM to serve (theoretical) | Where we would run it |
|---|---|---|---|---|
| Panama | 28.0 MB | ≈ 190 MB | ≈ 56 MB | VPS Standard |
| Panama + Costa Rica, merged | 62.6 MB | ≈ 430 MB | ≈ 125 MB | VPS Standard |
| Guatemala | 121 MB | ≈ 820 MB | ≈ 245 MB | VPS Standard |
| Mexico | 550.7 MB | ≈ 3.7 GB | ≈ 1.1 GB | Build on VPS Pro or larger, serve on Standard |
| Planet | 61 GiB (2021) | 415 GiB (reported) | ≈ 123 GiB (reported) | Build by continent; serve from a 192 GB dedicated server |
Extract sizes are Geofabrik's on 5 November 2026, except Mexico, whose 550.7 MB is the example quoted in the OSRM README.
Disk does not constrain you. At the 2021 ratio of about five bytes of output per byte of input, Panama's dataset comes to roughly 140 MB against 160 GB of NVMe (theoretical). Transfer rarely does either: the 15 TB included each month is 500 GB a day, or 46 Mbit/s sustained, and at an assumed 4 KB per response it covers about 3.7 billion responses a month, close to 1,450 per second around the clock (theoretical). The CPU gives out long before that. VPS transfer is metered, though, so if you put the tile service behind a busy map front end, watch the counter.
Mexico is where Standard runs short, because a 3.7 GB extraction peak leaves no room for the operating system on a 4 GB machine. You can add a swap file, which the OSRM wiki recommends anyway so that the OOM killer does not end a long extract, and accept a slower run. The cleaner option is to build the dataset once on a VPS Pro (8 GB, $22.99) or Power (16 GB, $42.99) and copy the files to the Standard that serves them. Build with the same image tag you serve with: OSRM stamps a fingerprint into its data files, and since 26.9.0 that fingerprint also takes the operating system into account, so a dataset built natively on a Mac is no shortcut.
The planet is a different project. At the 2021 figure of 123 GiB, a dedicated server taken to our 192 GB maximum (Titan ships with it) is the smallest machine we would serve world-wide car routing from, and the extraction peak is beyond anything in our catalogue. The operator of routing.openstreetmap.de, which also sits behind the OSRM demo, described splitting the planet into three regions to preprocess it on a 256 GB machine; plan on the same.
04/06
How to deploy it
with us.
Order the Standard with Debian 13 from the link above, log in as root and install Docker Engine with the Compose plugin from Docker's apt repository for Debian. Then add swap, fetch the extract and run the three preprocessing steps with a pinned image. We use the v26.10.0-debian tag rather than latest. The project moved its images from Alpine to Debian in 26.6.5, so older guides built around apk no longer apply.
fallocate -l 8G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
mkdir -p /srv/osrm/data && cd /srv/osrm/data
wget https://download.geofabrik.de/central-america/panama-latest.osm.pbf
IMG=ghcr.io/project-osrm/osrm-backend:v26.10.0-debian
docker run --rm -t -v "$PWD:/data" $IMG osrm-extract -p /opt/car.lua /data/panama-latest.osm.pbf
docker run --rm -t -v "$PWD:/data" $IMG osrm-partition /data/panama-latest.osrm
docker run --rm -t -v "$PWD:/data" $IMG osrm-customize /data/panama-latest.osrmThe server then runs from /srv/osrm/compose.yaml:
services:
osrm:
image: ghcr.io/project-osrm/osrm-backend:v26.10.0-debian
command: osrm-routed --algorithm mld --max-table-size 250 /data/panama-latest.osrm
environment:
DISABLE_ACCESS_LOGGING: "1"
volumes:
- ./data:/data:ro
ports:
- "127.0.0.1:5000:5000"
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "50m"
max-file: "3"Several lines in that file are deliberate. --algorithm mld is required because osrm-routed defaults to CH and would look for files the MLD pipeline never wrote. The port is published on 127.0.0.1 only: a plain 5000:5000 binds every interface, and Docker's own iptables rules sit ahead of ufw, so the firewall you configured would not stop it. --max-table-size lifts the default limit of 100 locations per matrix to 250. Matrix cost grows with the square of the location count, so 250 locations means 62,500 cells against 10,000, and we would not go higher without authentication in front. Since 26.9.0, large tables can also be sent as a JSON POST, which avoids URL-length limits at the proxy. The access-log switch is covered under limits below.
After docker compose up -d, a route from Casco Viejo to Tocumen airport checks the result (OSRM takes longitude first):
curl "http://127.0.0.1:5000/route/v1/driving/-79.5353,8.9524;-79.3835,9.0714?overview=false"Put nginx in front for TLS and a rate limit, plus an API key if the endpoint is not meant to be public; our nginx guide covers certificates. A minimal server block:
limit_req_zone $binary_remote_addr zone=osrm:10m rate=20r/s;
server {
listen 443 ssl;
server_name routing.example.com;
ssl_certificate /etc/letsencrypt/live/routing.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/routing.example.com/privkey.pem;
location ~ ^/(route|table|nearest|match|trip)/v1/ {
limit_req zone=osrm burst=40 nodelay;
proxy_pass http://127.0.0.1:5000;
}
location / { return 404; }
}Geofabrik rebuilds its extracts daily. If that gap matters, osrm-datastore with --shared-memory lets you swap datasets under a running server. Upgrading OSRM follows the same path: change the tag, rebuild the data, then switch. The dataset itself is reproducible, so back up what is not: the compose file, any customised profile and the .osm.pbf you built from, copied to a bucket with rclone or restic.
05/06
Cost.
| Item | Price |
|---|---|
| Cloud VPS Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps | $12.99 a month, or $116.99 a year |
| Daily VPS backups (optional, +20 %) | $2.60 a month |
| Object storage, 250 GB S3-compatible bucket (optional) | $1.99 a month |
| Extra IPv4 address | $2 a month |
| VPS Pro, if you build Mexico-sized extracts yourself | $22.99 a month |
The Standard includes DDoS protection, full root, one IPv4 address, local NVMe and a 99.9% uptime SLA backed by service credits. Since the routing dataset can be rebuilt from a public extract, daily VPS backups are optional; the $1.99 bucket holding your build inputs is the better spend. Payment is in cryptocurrency only, with balances kept in US dollars. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, rising to 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. The Cloud VPS page lists the rest of the range and the pricing page sets out the terms.
06/06
Limits and acceptable
use.
The routing data belongs to OpenStreetMap and is published under the Open Database Licence. Wherever you show routes or distances built from it, you must credit OpenStreetMap and its contributors and make clear that the data is available under the ODbL; an altered database you distribute has to go out under the same licence. Hosting in Panama changes none of that.
Coordinates are personal data more often than developers expect. A trace sent to the match service or a matrix of customer addresses usually says where a person is or lives, so you need a lawful basis for processing it. Panama's Law 81 of 26 March 2019, implemented by Executive Decree 285 of 28 May 2021, applies on our side, and Panama has no EU adequacy decision, so data about people in the EU needs safeguards such as the 2021 standard contractual clauses. Watch your own logs, too. At the default INFO level, osrm-routed writes an access-log line for every request with the client IP, user agent, status and full request path, plus the JSON body of a POST: a record of who asked about which coordinates. Setting DISABLE_ACCESS_LOGGING, as the compose file does, switches it off; nginx's access log keeps the same information and needs its own decision.
If the jurisdiction is part of why you are here, the offshore hosting page explains what it does and does not give you. 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, but a mutual legal assistance treaty in force since 6 September 1995 still gives US authorities a route through Panamanian ones.
Our acceptable use policy applies in full: no malware, botnets, phishing, spam, fraud or attacks on other networks from the server. Securing the endpoint, patching the system and staying within the 15 TB transfer are your side of the contract. Network-level DDoS protection handles volumetric attacks; a flood of expensive, well-formed table requests is an application problem, which is what the rate limit is for. Do not use the VPS as a relay that sends the public demo server more than its one request per second.
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.
Can I route the whole planet on a VPS?
No. Our largest VPS, Titan, has 64 GB of RAM, and OSRM's 2021 figures put car routing for the planet at about 123 GiB just to serve, with the data larger today. World-wide routing means a 192 GB dedicated server to serve and continent-sized pieces to preprocess.
Should I use MLD or CH?
MLD, unless your main workload is very large distance matrices, where the project still finds CH faster. MLD also lets osrm-customize apply new segment speeds without re-extracting, which is how traffic updates are fed in. Whichever you choose, pass the matching --algorithm to osrm-routed, which defaults to CH.
How long does Panama take to build, and how often should I rebuild?
Geofabrik refreshes the extract daily. For a delivery or fleet product in Panama, a weekly rebuild is a sensible default; go more often only when road changes that matter to your users are being mapped faster than that.
Can I route across Panama, Costa Rica and the rest of Central America?
Yes. Merge country extracts with osmium merge before osrm-extract, or download Geofabrik's Central America file, which also contains Puerto Rico and the US Virgin Islands. Its listed sub-regions alone add up to about 530 MB, close to the Mexico case, so build it on a Pro and serve it from a Standard.
Is PTY1 close enough for users in Colombia or Mexico?
For Central America and northern South America it is the natural location. Our latency figures from Panama City are calculations, not measurements, so test from where your users actually are before you commit.
Do I need to identify myself to order?
No. We are no-KYC: an email address is enough to open an account, and you pay in cryptocurrency. Business customers can pay in crypto as well.
Sources
Every fact on this page, with its source
Checked 31 Oct 2026 unless noted.
Panamanian law and authorities
- gacetaoficial.gob.pagacetaoficial.gob.pa
EU and other countries
- GDPR, Article 46GDPR, Article 46
- justice.govjustice.gov
Industry, providers and software
- OSRM READMEOSRM README
- OSRM releasesOSRM releases
- OSRM container imagesOSRM container images
- osrm-routed source, routed.cpposrm-routed source, routed.cpp
- github.comgithub.com
- OSRM wiki, Disk and Memory RequirementsOSRM wiki, Disk and Memory Requirements
- OSRM wiki, Running OSRMOSRM wiki, Running OSRM
- OSRM wiki, Demo serverOSRM wiki, Demo server
Other references
- lists.openstreetmap.orglists.openstreetmap.org
- Geofabrik, Central America extractsGeofabrik, Central America extracts
- OpenStreetMap copyright and licenceOpenStreetMap copyright and licence
- state.govstate.gov
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.