Online
Counter-Strike: Source Surf (Surfd)Shooter · PC

First-person shooter · Xash3D FWGS WebAssembly port (Vue and TypeScript frontend)
Half-Life and Counter-Strike 1.6 (WebXash)
GoldSrc-era classics on a Xash3D WebAssembly build, demos included.
- Developer
- Valve
- Released
- 1998
- Platform
- PC (Windows)
- Players
- Single-player, multiplayer by server IP
WebXash runs Half-Life and Counter-Strike 1.6 in a browser tab using a WebAssembly build of the Xash3D FWGS engine. You can start one of the free Half-Life demos straight away, or point it at your own Steam game folders for the full games.
Opens the x8bitrain.github.io version in a new tab. BitRunWasm does not host this game. Never install extensions or launchers a game page asks for.
Controls
Half-Life and Counter-Strike 1.6 - keyboard, mouse and pad
| Action | Input |
|---|---|
| Move | W A S D |
| Aim | Mouse |
| Fire | Left mouse button |
| Secondary fire / scope | Right mouse button |
| Jump | Space |
| Crouch | Ctrl |
| Walk quietly | Shift |
| Use | E |
| Reload | R |
| Buy menu (Counter-Strike) | B |
| Choose team (Counter-Strike) | M |
| Drop weapon (Counter-Strike) | G |
| Scoreboard | Tab |
| Console | ~ |
These are the default Half-Life and Counter-Strike 1.6 bindings, which Xash3D keeps; WebXash also exposes a console and launch options.
Cheats
4 codes - click one to copy
Type these in the console (~) during a local single-player game. They do not work on multiplayer servers that do not allow cheats.
Guide
6 tips for Half-Life and Counter-Strike 1.6
Start with Uplink
Uplink is the smallest demo at about 45 MB and contains original levels made for the demo. It is the quickest way to check that WebXash runs well on your machine before importing a full install.
Grant folder access once
If you allow the site to keep access to your game folder, the choice persists across visits. That saves you selecting it every time, and WebXash still never writes to it.
Use steamcmd for a clean copy
The project README suggests getting the files with steamcmd using app 70, or copying the valve and cstrike folders from your steamapps directory. A clean, unmodded copy avoids DLL-based mods that this Xash branch may not support.
Keep expansions next to valve
For Blue Shift, Opposing Force or other mods, the valve folder must be present beside the mod folder in whatever you select or zip. Without it the engine cannot load shared assets.
Watch memory on big imports
Because the files live in an in-memory filesystem for the session, a full install with several mods uses a lot of RAM. Load only the game you want to play on lower-end laptops and Chromebooks.
Check the FAQ before reporting bugs
The author asks players to read the FAQ first. Many problems come from the folder layout or from mods that need custom DLLs, which the older Xash branch does not handle.
About Half-Life and Counter-Strike 1.6
Valve, 1998
Half-Life (1998) and Counter-Strike 1.6 (2003) both come from Valve's GoldSrc era. Half-Life is the story-driven shooter set in the Black Mesa Research Facility. Counter-Strike started as a mod by Minh Le and Jess Cliffe, was bought by Valve, and its 1.6 version became the long-running competitive standard of terrorists versus counter-terrorists.
WebXash, by x8BitRain, is described by its author as a work-in-progress, slightly improved version of Xash3D in the browser, written in Vue and TypeScript. Under the hood it uses yohimik's Xash3D FWGS WebAssembly build. Xash3D is an independent engine compatible with GoldSrc games, which is how Valve's game data can run without Valve's executable.
The launcher lists three Half-Life demos you can start without owning anything: Uplink (about 45 MB), Day One (about 78 MB) and HLDM, Half-Life Deathmatch (about 85 MB). For the full Half-Life, Counter-Strike or expansions like Blue Shift and Opposing Force, you supply your own files.
When you open your game folder, WebXash only reads it. It copies the files into an in-memory WASM filesystem for the session and never writes back to your disk. The author notes that the Xash3D branch used is out of date and may not support mods that need custom DLLs.
How to play Half-Life and Counter-Strike 1.6 online
- Open x8bitrain.github.io/webXash in Chrome or Edge; folder access works best in Chromium browsers.
- To try it for free, pick one of the Half-Life demos (Uplink, Day One or HLDM) and wait for the zip to download.
- For the full games, click Open game folder and select the root of your Half-Life install, the folder that contains valve and, if you own it, cstrike.
- Choose the game directory from the list that appears. This sets the -game launch argument, which you can override in Launch Options.
- For multiplayer, enter a server address in Multiplayer IP before launching, if you have one to join.
- Alternatively, zip your valve and cstrike folders and use Open ZIP.
Game details
| Game | Half-Life and Counter-Strike 1.6 (WebXash) |
|---|---|
| Developer | Valve |
| Publisher | Sierra Studios (Half-Life), Valve (Counter-Strike 1.6) |
| Released | 1998 |
| Original platform | PC (Windows) |
| Browser version | Xash3D FWGS WebAssembly port (Vue and TypeScript frontend) |
| Players | Single-player, multiplayer by server IP |
| Genre | First-person shooter |
| Runs on | x8bitrain.github.io |
Half-Life and Counter-Strike 1.6 FAQ
Do I need to own Half-Life or Counter-Strike?
Not for the demos: Uplink, Day One and HLDM are offered in the launcher. The full Half-Life and Counter-Strike 1.6 need your own files, for example from Steam.
Are my game files uploaded?
No. WebXash reads your folder or zip locally and loads the files into an in-memory filesystem in the browser. Nothing is written back to your disk.
What does WASM mean here?
The Xash3D FWGS engine is compiled to WebAssembly, so it runs natively in the browser. That is why GoldSrc games can work without installing anything.
Does it work on a Chromebook?
Chrome on a Chromebook can run the demos. Folder access depends on where your files are, so a zip is often easier there.
Can I play Counter-Strike online?
There is a Multiplayer IP option in the launcher for joining a server address. Whether a given server accepts browser clients depends on that server.
Are saves kept?
WebXash has a Saves section, but the game filesystem lives in memory during a session. Keep important saves exported where the launcher allows it.
More games like Half-Life and Counter-Strike 1.6
Online
Counter-Strike: Source Surf (Surfd)Shooter · PC
Online
Counter-Strike: Source Bunnyhop (bunnyhop.lol)Shooter · PC
Online
Counter-Strike 1.6Shooter · PC
Call of Duty: Modern Warfare 2Shooter · PC
WadCMD (Doom in the browser)Shooter · PC
Claude of Duty: Vibe Slops II (froydinger mirror)Shooter · PC
Online
Return to Castle Wolfenstein (rtcw.pieter.com)Shooter · PC
Urban Terror (ut.pieter.com)Shooter · PC
Call of Duty: Black Ops ZombiesZombies · PC
Online
Quake III Arena (q3js)Shooter · PC
Online
Doom Multiplayer (Silent Space Marine)Shooter · PC