panda-chat

by ethPandaOps

Helm chartv0.2.0App 2026.6.5Verified publisher

AI chat for an Ethereum devnet — an Open-WebUI front end backed by a NousResearch Hermes agent wired to the `panda` CLI, giving anyone access to devnet analytics (Xatu/Prometheus/Loki/Dora/Ethnode via panda-proxy), account funding (powfaucet) and join-the-devnet helpers.

About this chart

panda-chat

AI chat for an Ethereum devnet — an Open-WebUI front end backed by a NousResearch Hermes agent wired to the panda CLI, giving anyone access to devnet analytics (Xatu/Prometheus/Loki/Dora/Ethnode via panda-proxy), account funding (powfaucet) and join-the-devnet helpers.

Homepage: https://github.com/ethpandaops/chat

Requirements

RepositoryNameVersion
https://helm.openwebui.comopen-webui14.5.0

What this deploys

  • Open-WebUI front end (subchart) on chat.<network> — the chat UI.
  • Hermes agent (NousResearch) as an OpenAI-compatible backend, wired to the panda CLI for live devnet analytics (Xatu / Prometheus / Loki / Dora / Ethnode via the hosted panda-proxy).
  • Agent skills for the EthPandaOps tools: panda (query), faucet (fund accounts via the devnet powfaucet) and join-devnet (enodes / bootnodes / genesis from the devnet config service).
  • Optional Langfuse tracing (langfuse.enabled) via Hermes' bundled observability/langfuse plugin — one span per turn, one generation per LLM call, one observation per tool call; traces tagged with the devnet name.

When panda.enabled is true the pod gains a separate panda-server sidecar container (panda-server + dockerd, privileged — dockerd needs root); the hermes container always runs unprivileged. The bot identity for the proxy is an Authentik service account (e.g. panda-chat-svc with a non-expiring app password) supplied via credentials.panda.botUsername / credentials.panda.botToken and materialized in a dedicated Secret that only the sidecar mounts — Hermes executes LLM-driven shell commands, so it never shares an environment with the bot credential. panda-server mints proxy access tokens on demand with the OAuth2 client_credentials grant and keeps them in memory only — no seeded credential files, no refresh-token rotation. Hermes reaches the sidecar on 127.0.0.1:2480 (shared pod network namespace).

Access control

The chart serves a public ingress by default (like Dora). Because the agent incurs real LLM spend, gate it to your org with Cloudflare Access — the same edge gate the devnet already runs (authenticatoor / faucet rely on it). CF Access verifies org membership and passes the identity to the origin as Cf-Access-Authenticated-User-Email; Open-WebUI consumes it as trusted-header SSO (no password), auto-provisioning the user on first visit.

  1. Create a Cloudflare Access application on chat.<network> scoped to the org (e.g. the ethpandaops GitHub org). This is the only out-of-band step — the same primitive that already gates auth.<network>.

  2. Enable trusted-header SSO:

    open-webui:
      sso:
        enabled: true
        enableSignup: true            # auto-provision on first login
        trustedHeader:
          enabled: true
          emailHeader: Cf-Access-Authenticated-User-Email
      extraEnvVars:
        - name: ENABLE_LOGIN_FORM      # hide the password form
          value: "false"
    

⚠️ Trust model: the chat host must only be reachable via Cloudflare, so the email header can't be spoofed by hitting the origin directly — the same assumption authenticatoor and the rest of the devnet stack already rely on.

Per-user identity is also propagated to the agent: the Open-WebUI image (ethpandaops/open-webui-cf) forwards Cf-Access-Jwt-Assertion upstream so Hermes can attribute traffic to the individual user (Langfuse user_id, X-Panda-On-Behalf-Of audit header). Authentication to panda-proxy itself is always the bot service account. On devnets the bal-devnets ansible template wires the trusted-header config from a single toggle — see chat.yaml.j2.

Image

Two images, both built from ethpandaops/chat:

  • image.repository (ethpandaops/hermes-agent-panda) — the Hermes agent with the panda overlay (panda CLI + panda-server + dockerd + entrypoint + skills).
  • open-webui.image (ethpandaops/open-webui-cf) — Open-WebUI patched to forward the Cloudflare Access JWT to the agent (see Access control). Its tag must match the open-webui subchart appVersion.

Wiring the front end to the agent

The chart does not assume the release name, so set the agent endpoint on the subchart (the bal-devnets ansible template does this automatically):

open-webui:
  openaiBaseApiUrls:
    - "http://<release>-hermes:8642/v1"
  extraEnvVars:
    - name: OPENAI_API_KEYS
      valueFrom:
        secretKeyRef:
          name: <release>-hermes-secret
          key: API_SERVER_KEY

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for the agent pod
chainIdstring""The devnet chain id (informational; surfaced to the join-devnet skill).
credentials.langfuse.publicKeystring""Langfuse public key (pk-lf-...)
credentials.langfuse.secretKeystring""Langfuse secret key (sk-lf-...)
credentials.llmApiKeystring""The LLM API key value (materialized into the Secret under llm.apiKeyEnv)
credentials.panda.botTokenstring""Authentik app-password token for the bot service account (client_credentials grant; minted tokens stay in memory). Required when panda.enabled.
credentials.panda.botUsernamestring""Authentik service-account username for the bot (e.g. panda-chat-svc). Required when panda.enabled.
devnetTools.faucet.enabledbooltrueEnable the faucet (account funding) skill
devnetTools.faucet.urlstring""powfaucet base URL
devnetTools.join.configUrlstring""Base config service URL (serves /cl/config.yaml, /el/enodes.txt, etc.)
devnetTools.join.enabledbooltrueEnable the join-devnet skill
devnetTools.join.explorerUrlstring""Block explorer URL
devnetTools.join.rpcUrlstring""Public execution RPC URL
fullnameOverridestring""Overrides the chart's computed fullname
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ethpandaops/hermes-agent-panda"Panda-overlay Hermes agent image (Hermes + panda CLI + panda-server + dockerd).
image.tagstring""Image tag. Defaults to the chart appVersion when empty.
imagePullSecretslist[]Image pull secrets for the agent image
langfuse.baseUrlstring""Langfuse base URL
langfuse.enabledboolfalseEnable Langfuse tracing
langfuse.envstring""Environment tag on traces (defaults to network when empty)
llm.apiKeyEnvstring"ANTHROPIC_API_KEY"Env var the agent reads the model key from (must match a key materialized by credentials)
llm.apiModestring""Hermes api_mode (chat_completions / anthropic_messages / ...); auto-detected from URL when empty
llm.baseUrlstring""Base URL override (required for custom; optional override otherwise)
llm.modelstring"claude-sonnet-4-6"Model identifier
llm.providerstring"anthropic"Hermes provider name (anthropic / openai / custom / minimax / ...)
nameOverridestring""Overrides the chart's name
networkstring""The devnet network this chat serves (e.g. bal-devnet-7). Used to scope panda queries and surfaced to the agent so it answers in-context.
nodeSelectorobject{}Node selector for the agent pod
open-webui.enabledbooltrueRender the Open-WebUI front end
open-webui.extraEnvVars[0].namestring"ENABLE_OLLAMA_API"
open-webui.extraEnvVars[0].valuestring"false"
open-webui.image.repositorystring"ethpandaops/open-webui-cf"
open-webui.image.tagstring"0.9.5"
open-webui.ingress.annotationsobject{}
open-webui.ingress.classstring"ingress-nginx-public"
open-webui.ingress.enabledbooltrue
open-webui.ingress.hoststring""
open-webui.ollama.enabledboolfalse
open-webui.persistence.enabledbooltrue
open-webui.persistence.sizestring"5Gi"
open-webui.pipelines.enabledboolfalse
open-webui.replicaCountint1
open-webui.sso.enableSignupbooltrue
open-webui.sso.enabledboolfalse
open-webui.sso.trustedHeader.emailHeaderstring"Cf-Access-Authenticated-User-Email"
open-webui.sso.trustedHeader.enabledboolfalse
open-webui.sso.trustedHeader.nameHeaderstring""
open-webui.websocket.enabledboolfalse
open-webui.websocket.redis.enabledboolfalse
panda.clientIdstring"panda-proxy"OAuth client id at the proxy
panda.enabledbooltrueEnable the panda-server sidecar container (privileged; the hermes container is not)
panda.issuerUrlstring"https://authentik.analytics.production.platform.ethpandaops.io/application/o/panda-proxy/"Authentik application issuer the bot service account mints client_credentials tokens against (the trailing slash is part of the issuer — keep it)
panda.proxyUrlstring"https://panda-proxy.analytics.production.platform.ethpandaops.io"Hosted panda-proxy URL (analytics data plane)
panda.resourcesobject{"limits":{"cpu":"2000m","memory":"4Gi"},"requests":{"cpu":"200m","memory":"512Mi"}}Resources for the panda-server sidecar (panda-server + dockerd + sandboxes)
panda.sandboxImagestring"ethpandaops/panda:sandbox-v0.31.0"Sandbox container image panda-server spawns for Python execution
panda.storageDriverstring"overlay2"dockerd storage driver (overlay2; set to vfs if overlayfs is unavailable in-pod)
persistence.accessModeslist["ReadWriteOnce"]Access modes
persistence.enabledbooltrueEnable a PVC for /opt/data (Hermes state + panda config/creds/storage)
persistence.existingClaimstring""Use an existing claim instead of creating one
persistence.sizestring"8Gi"PVC size
persistence.storageClassstring""Storage class (cluster default when empty)
resourcesobject{"limits":{"cpu":"1000m","memory":"2Gi"},"requests":{"cpu":"200m","memory":"768Mi"}}Resources for the hermes container (panda-server sidecar sized separately under panda.resources)
service.portint8642Agent service port (Hermes OpenAI-compatible API)
service.typestring"ClusterIP"Agent service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueCreate a service account for the agent
serviceAccount.namestring""Service account name (defaults to the fullname)
systemPromptstring"You are the EthPandaOps assistant for the Ethereum devnet \"{{ network }}\".\nHelp users understand devnet state and use the EthPandaOps tooling:\nquery live data with the pandaskill, fund accounts with thefaucet\nskill, and join the network with the join-devnet skill. Be concise and\nalways scope data queries to this devnet.\n"System prompt for the agent. {{ network }} is substituted at render time.
tolerationslist[]Tolerations for the agent pod

Deploy panda-chat with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has panda-chat on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpanda-chat is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply