OpenCiv is a turn-based strategy game inspired by Sid Meier's Civilization, focused on Civ 5's mechanics. It runs in your web browser, so there's nothing to install to play once a server is running.
The game is under active development. There's no public server yet, so for now you run your own (below). Expect missing features and rough edges.
You need either Docker or Node.js (which includes npm).
git clone https://github.com/RyanGrieb/OpenCiv.git
cd OpenCivWith Docker:
docker compose up -dWith Node.js:
npm run install-all
npm startThen open http://localhost:1234 in your browser.
The person running the server shares their address. Everyone else opens the game at http://<their-address>:1234, clicks Join Game and connects. The join screen also accepts an explicit host:port when the server runs on a non-default port. Players need to be on the same network, or the host needs to forward ports 1234 (the game page) and 2000 (the game server).
The host can change options in the lobby before starting:
| Option | Default | What it does |
|---|---|---|
| Map size | Medium | Duel, Tiny, Small, Medium, Large, Huge, or custom dimensions under advanced options. |
| City-states | 6 | How many city-states are placed on the map. |
| Barbarians | On | Whether barbarian camps spawn. |
| Wrap map | On | Connects the east and west edges so the world is a cylinder. |
| Reveal map | Off | Turns off fog of war (meant for debugging). |
| Input | Action |
|---|---|
W A S D / arrow keys / left-click drag |
Move the camera |
Mouse wheel / = and - |
Zoom in and out |
| Left-click a unit, then right-click a tile | Move the unit |
| Left-click a city | Open the city screen |
| Next Turn button | End your turn |
Esc |
Settings |
Come say hi, report bugs or suggest features on Discord, or open an issue on GitHub.
Want to contribute? See DEVELOPMENT.md.
Contributors: Will Pewitt
| Artist | Contribution |
|---|---|
| lucasyoung988 | Commissioned game art |
| brysia | Commissioned game art |
| pratamacam | Commissioned game art |
| CharlesGabriel | Message boxes |
| BatzelChaos | Shield icon |
See LICENSE.

