You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file is the authoritative source of truth for the tinycode container interface.
Both tinycode-container (which produces the image) and tinycode-operator (which deploys it)
must stay in sync with these values.
Image
Field
Value
Registry
quay.io/bjohns/tinycode-container
Tags
:latest, :<git-sha>
Architectures
linux/amd64, linux/arm64
Base
Red Hat UBI9
Runtime Identity
Field
Value
User
tinycode
UID
1001
GID
0 (OpenShift arbitrary-UID pattern: g=u)
Port
Field
Value
Container port
4096 (tinycode default — server.ts:123)
Override
TINYCODE_PORT env var or server.port in config
Health Endpoints
Endpoint
Purpose
GET /global/health
Liveness + readiness (unauthenticated)
Volume Mounts
Mount path
Purpose
PVC subPath
/home/tinycode/.local/share/tinycode
SQLite DB, session history
data
/home/tinycode/.config/tinycode
Config files (config.json, tinycode.jsonc)
config
/projects
User workspace files
(separate PVC)
Environment Variables
Variable
Default
Description
Core Configuration
TINYCODE_SERVER_PASSWORD
(none — unauthenticated)
Server auth password
TINYCODE_PORT
4096
Override server port
TINYCODE_SESSION_ID
(none)
Attach to existing session on start
TINYCODE_WORKDIR
/projects
Working directory for projects (fallback: /home/tinycode)
LLM Providers
TINYCODE_OLLAMA_HOST
http://host.containers.internal:11434
Ollama endpoint
TINYCODE_VLLM_URL
(none)
vLLM endpoint (bridged to TINYCODE_VLLM_HOST)
TINYCODE_VLLM_HOST
(none)
vLLM endpoint (native tinycode env var)
TINYCODE_VLLM_MODEL
(none)
Default model for vLLM (written to config.json)
OPENROUTER_API_KEY
(none)
OpenRouter API key for cost tracking and balance display
GitOps Configuration
TINYCODE_GIT_REPO
(none)
Git repo URL to clone into /projects on startup
TINYCODE_GIT_BRANCH
(default branch)
Branch to clone
TINYCODE_GIT_PULL_ON_RESTART
false
Pull latest on restart if repo exists
TINYCODE_GIT_CLONE_TIMEOUT
300
Clone timeout in seconds
Cluster Management
TINYCODE_CLUSTER_ADMIN
false
Enable cluster-admin agent (downloads oc CLI and mounts kubeconfig)
TINYCODE_OC_VERSION
stable
oc CLI version to download (e.g., 4.17 for reproducibility)
Operator-injected config content (not directly set by users)
TINYCODE_DISCOVERY_NAMESPACES
(none)
Comma-separated list of namespaces for service discovery (operator-managed)
Output (Set by Entrypoint)
TINYCODE_CLUSTER_TYPE
(auto-detected)
Set to openshift or kubernetes when TINYCODE_CLUSTER_ADMIN=true
Included Tools
tmux (v3.2a) is installed from CentOS Stream 9 RPM and included in the runtime image to support the /swarm skill — a supervised multi-worker orchestration tool that creates split-screen sessions for distributed task solving.
Startup Behaviour
The container ENTRYPOINT is entrypoint.sh which:
Sets HOME=/home/tinycode and SHELL=/bin/sh (OpenShift compatibility)
Validates TINYCODE_VLLM_MODEL format (alphanumeric, /, _, -, ., :, @, space; max 255 chars; no shell injection)