Configuration

Pontia reads its persistent configuration from $PONTIA_HOME/config.toml. PONTIA_HOME defaults to $HOME/.pontia and must be a non-root absolute path without .. traversal.

After editing persistent service settings, apply them with:

pontia up

Basic configuration

bind_addr = "127.0.0.1:8080"
external_api_token = "replace-with-a-long-secret"
run_migrations = true
default_client_type = "pi"

[runtime.pi]
tui_command = "pi"

[workspace_browser]
roots = [
  { root_id = "projects", label = "Projects", path = "/home/me/projects" }
]
KeyMeaning
bind_addrLocal HTTP listen address; defaults to 127.0.0.1:8080
external_api_tokenBearer token required by the local Dashboard and External API
run_migrationsWhether pontiad applies its bundled database migrations; defaults to true
default_client_typeDefault Client identifier; the current supported value is pi
dashboard.sourceLocal Dashboard build directory or remote .tar.gz, .tgz, or .zip archive containing exactly one index.html
runtime.pi.tui_commandPi executable or command used for launched Pi Sessions
workspace_browser.rootsDirectories the Dashboard may browse to activate Workspaces
preview.enabledEnables localhost web-app previews; defaults to true
preview.allowed_portsAdditional sensitive development or administration ports explicitly available to previews

The release default for dashboard.source is the Dashboard archive matching the installed Pontia version. Remote Dashboard archives are cached under $PONTIA_HOME/cache/dashboard; an existing cache can still be served if refresh fails.

Local preview

Localhost previews are enabled by default for normal web development ports. Add a sensitive development or administration port when the app intentionally listens there:

[preview]
enabled = true
allowed_ports = [8888, 9222]

allowed_ports accepts port numbers from 1 through 65535. It is commonly useful for Jupyter on 8888, Chrome DevTools on 9222, Node inspect on 9229, and Ollama on 11434. Run pontia up after changing these settings. See Previews for the Dashboard workflow.

File picker

The file picker powers @ suggestions inside an active Workspace:

[file_picker]
enabled = true
min_query_chars = 0
max_results = 100
max_candidates = 100000
timeout_ms = 1500
respect_gitignore = true
respect_ignore_files = true
respect_git_exclude = true
include_hidden = false
follow_symlinks = false
ignore_globs = [
  ".git/**",
  "node_modules/**",
  "target/**",
  "dist/**",
  "build/**",
  ".svelte-kit/**",
  ".next/**"
]

Set follow_symlinks = true to include accessible symlink targets in searches, including targets outside the visible directory tree.

Uploaded files

Uploaded files are automatically deleted after their retention period, measured from when the upload started. Keep files needed for longer in your Workspace before they expire.

[uploads]
incomplete_retention_days = 7
completed_retention_days = 30
cleanup_interval_hours = 24

These are the defaults. All three values must be positive integers. Cleanup runs in the background at service startup and then at the configured interval, skipping uploads being written. Apply changes by restarting the service with pontia up.

Environment overrides

The running process accepts these overrides:

VariableOverrides
PONTIA_HOMEState and configuration directory
PONTIA_EXTERNAL_API_TOKENexternal_api_token
PONTIA_RUN_MIGRATIONSrun_migrations
PONTIA_DEFAULT_CLIENT_TYPEdefault_client_type
PONTIA_WORKSPACE_ROOTSWorkspace roots as `root_id
PONTIA_DASHBOARD_SOURCEdashboard.source; an empty value disables Dashboard serving
PONTIA_PI_TUI_COMMANDruntime.pi.tui_command; an empty value uses pi
PONTIA_AUTH_ORIGINPontia Cloud HTTPS origin; intended for controlled deployments and development

Environment values take precedence over file values for the running process. For persistent service configuration, use config.toml. The installed service stores PONTIA_HOME, PONTIA_AUTH_ORIGIN, and the required Agent Client paths separately.

Boolean environment values accept 1, true, yes, or on, and 0, false, no, or off.

State files

The default state directory contains sensitive and durable data:

PathPurpose
config.tomlPersistent service configuration and local API token
auth.jsonPontia Cloud CLI credential
e2e-identity.jsonRemote device identity private key and key version
data/pontia-e1.dbLocal control-plane database
workflows/Workflow Handoffs, accepted definitions, and Patch documents
state/Runtime sockets, launch files, and integration logs
cache/dashboard/Cached remote Dashboard bundle

Keep the state directory private and protect its backups as described in Security. Use Device management to rotate or revoke remote credentials.