Installation
Requirements
- Python: 3.10–3.14 (CPython)
- Network: Outbound HTTPS (and WSS) to Werk24 API
Python 3.9 end of support
Python 3.9 is no longer supported.
Get an API key
To try Werk24 first, use the browser demo. It needs no signup and no card.
For the API you need an account and an API key:
- Sign up in the console. The signup takes a card. werk24.io/pricing lists the plans and their rates.
- Create a key on the console's Keys page.
-
Give the key to the client, in one of two ways:
- Run
werk24 init, choose option 1 and paste the key. It is saved to a.werk24file in the folder you run it in, and scripts started from another folder do not find it. -
Set the environment variable
W24TECHREAD_AUTH_TOKENto the key. This is the way for a server, CI, a container or scripts run from several folders:
Any license file is read before the environment variable:
.werk24orwerk24_license.txt, in the current folder or your home folder.If the client already finds a key, from a license file or the environment variable,
werk24 initsays Werk24 is already initialized and does not ask. To replace a key, edit or delete that file. - Run
For a contract (volume, dedicated terms), talk to us through werk24.io.
Quick start (recommended)
If the health check prints positive messages, you’re good to go.
Important
The Health Check verifies a secure WebSocket (WSS) connection to Werk24. Corporate firewalls often block WSS. If it fails:
- Allow outbound WSS (TLS) on port 443
- Whitelist
wss://ws-api.w24.co(or your regional endpoint)
Upgrading
Troubleshooting
- Multiple Pythons installed: Run
python --versionandpython -m pip --versionto confirm you’re using Python 3.10–3.14 and the matching pip. - Proxy/Firewall: If initialization fails, check outbound HTTPS and any corporate proxy settings.
- Permission errors: Use a virtual environment or add
--userto the pip command.
Next steps
- CLI requests: Learn to send drawings from the terminal → CLI guide
- API usage: Use the Python client in your app → Python client, or any other language → HTTP API