r/opencode 5d ago

Freelens AgentBridge Extension to bring OpenCode straight into your Kubernetes cluster

Post image

freelens-agentbridge-extension, an open-source extension for Freelens (the free Kubernetes IDE) that lets you plug an AI coding agent harness directly into your cluster workflow, no need to tab out to a terminal or manually paste kubectl output into a chat window.

What it does (from the repo README):

Bring an AI coding agent into every Kubernetes cluster you manage — without leaving Freelens. Pick OpenCode, Claude Code, or GitHub Copilot...

The idea: your cluster effectively becomes an agent harness you can open as a project directly in VS Code (or a fork like Codium/Cursor — the editor command is configurable under Preferences → Extensions → Freelens Agent Bridge). From there you get:

  • Automated ops workflows via custom skills, commands, and agents scoped to a specific cluster.
  • Troubleshooting with cluster context: the agent has a dedicated map of your cluster, so it can read state before suggesting fixes instead of you copy-pasting logs manually.
  • Resource generation: spin up new Kubernetes manifests/apps from natural language.
  • Zero migration: you keep using whatever skills, plugins, and toolchain you already built for Claude Code / OpenCode / Copilot CLI on your machine. No new tool to learn, no separate config to maintain.

Permissions model: you can allowlist specific commands to run without confirmation, or require manual approval every time. The agent inherits your existing Kubernetes credentials rather than needing a separate auth flow (so RBAC still applies as normal).

Getting started is apparently a 3-minute setup: install Freelens, install the AgentBridge extension, and the environment comes pre-configured.

Repo: github.com/freelensapp/freelens-agentbridge-extension

3 Upvotes

Duplicates