Run CodeGate with Docker
If CodeGate is not deployed yet, pull the image:Then open:-p 8877:8877: Maps the admin UI port
-v codegate-data:/app/backend/data: Mounts a volume for data persistence
- Admin UI:
<http://localhost:8877>
base_url = http://localhost:8877 in the steps below (or your host/domain if the API and caller are on different machines).
Prerequisites
- A running CodeGate instance (API URL and admin UI). If you used the Docker command above, nothing else is needed.
Step 1: Install the SDK
Choose by stack:- Python
- JavaScript
uv:Step 2: Create a project and API key in CodeGate
- Log in to the CodeGate admin UI.
- Create a project (if needed).
- Go to project details → API keys.
- Click Generate key to get
api_key,secret, andproject_id.
Step 3: Initialize the client
- Python
- JavaScript
api_key, secret, project_id with your credentials and base_url with your CodeGate API URL.
Step 4: Verify an activation code
- Python
- JavaScript
Environment variables (recommended)
For production, use environment variables for credentials:- Python
- JavaScript
Next steps
Python SDK
More Python usage
JavaScript SDK
More JavaScript usage
API reference
Call REST API directly