title | description | sidebar_position |
---|---|---|
Access the dashboard |
View alerts and usage history |
20 |
CodeGate includes a web dashboard that lets you view the security risks that CodeGate has detected and a history of interactions between your AI coding assistant and your LLM.
To access the dashboard, ensure port 9090 is bound to a port on your local system when you launch CodeGate, for example:
docker run --name codegate -d -p 8989:8989 \
-p 9090:9090 \
--mount type=volume,src=codegate_volume,dst=/app/codegate_volume \
--restart unless-stopped ghcr.io/stacklok/codegate:latest
Open http://localhost:9090 in your web browser to view the dashboard.
To use a different listening port on your host, replace the first 9090
with
your desired port, like -p YOUR_PORT:9090
. The dashboard will be available at
http://localhost:YOUR_PORT/
.
:::note
If you change the web dashboard port, some links returned by CodeGate's responses won't work without manually changing the port when they open in your browser.
:::
To retain your prompt history and workspace configurations between restarts,
mount a persistent
Docker volume to the CodeGate
container. This example creates a volume named codegate_volume
:
docker run --name codegate -d -p 8989:8989 -p 9090:9090 \
--mount type=volume,src=codegate_volume,dst=/app/codegate_volume \
--restart unless-stopped ghcr.io/stacklok/codegate:latest
:::note
The volume must be mounted to /app/codegate_volume
inside the container. Do
not modify the dst
value of the --mount
parameter in the docker run
command.
:::