Okteto customers are increasingly using AI agents (Claude Code, etc.) as first-class developers in their environments. We built a Claude Code plugin to make this easy without requiring per-repo configuration files. This document captures the context needed to update Okteto docs for agentic workflow support.
From conversations with prospects evaluating Okteto for agentic workflows, their desired end state includes:
- Agents as first-class citizens: AI agents spin up their own isolated Okteto environments, just like human developers do
- One unified remote environment: The same environment works for both humans and agents -- no separate infra
- Environments defined as code: All config lives in version control (
okteto.yaml), reviewable and reproducible - Standardized base images: Curated, versioned base images ensure deterministic behavior regardless of who or what launched the environment
- Stateful services are resettable: Databases and message queues start from a shared baseline, revertable to clean state
- Shared service overlay: Environments can connect to already-running services in a testing environment instead of standing up every dependency
- PR preview environments: Every PR gets a running environment that stakeholders can access without local setup
- No environment drift: What works in one environment works in all of them
- Security and cost controls: Isolation, access controls, auto-shutdown on idle
- Remote authoring: Developers connect to remote dev environments from their IDE via standard protocols
The plugin teaches agents two distinct workflows:
A developer is actively working with the agent in an IDE or terminal.
- Agent runs
okteto deploy --waitto set up the environment - Developer runs
okteto up <service>in their terminal (interactive -- agent must never run this) - Agent uses
okteto exec -- <command>to run diagnostics, tests, builds in the dev container - Agent uses
okteto logs <service>to check container output - Agent uses
okteto test <test-name>to run test containers - Code changes auto-sync to the dev container via file sync
Key rule: okteto up is interactive and must always be run by the human, never the agent.
Agent operates end-to-end, triggered by a ticket, PR, or CI pipeline.
Workflow:
- Read ticket/issue for requirements and acceptance criteria
okteto deploy --waitto spin up full environmentokteto endpointsto capture live URLs- Make code changes based on requirements
okteto build <service>to rebuild changed service imagesokteto deploy --waitto redeployokteto test <test-name>to validate- Smoke-test live endpoints with curl
okteto logs <service> --since 5mto check for errors- Iterate on failures (fix, rebuild, redeploy, re-test)
- Commit, open PR, report results back to ticket
Key rule: Never use okteto up in autonomous mode. Use okteto deploy + okteto build + okteto test instead.
A core design principle: agents should not need hardcoded service lists or per-repo config files. Instead, the agent reads okteto.yaml to discover:
buildsection: Which services have container imagesdeploysection: How services are deployed (usually Helm charts)devsection: Which services support dev mode, their images, sync paths, startup commandstestsection: Which test containers are available and their commands
This makes the plugin work across any Okteto project without maintenance.
| Command | Collaborative | Autonomous | Purpose |
|---|---|---|---|
okteto deploy --wait |
Agent | Agent | Build images and deploy all services |
okteto build <service> |
Agent | Agent | Build and push a single service image |
okteto up <service> |
User only | Never | Start interactive dev container |
okteto down |
Agent/User | N/A | Stop dev mode, restore deployment |
okteto exec -- <cmd> |
Agent | N/A | Run command in active dev container |
okteto logs <service> |
Agent | Agent | View container logs |
okteto endpoints |
Agent | Agent | List public URLs |
okteto test <name> |
Agent | Agent | Run a test container from okteto.yaml |
okteto destroy |
User | With policy | Tear down all resources |
The plugin is published at: https://github.com/okteto/okteto-claude-plugins
Users install with:
/plugin marketplace add okteto/okteto-claude-plugins
/plugin install okteto
Contents:
skills/okteto/SKILL.md-- Main skill covering both operating modescommands/dev-setup.md--/dev-setupslash command for environment setup.claude-plugin/plugin.json-- Plugin metadata.claude-plugin/marketplace.json-- Marketplace manifest
Suggested documentation areas based on customer conversations:
- Getting started with AI agents on Okteto -- How to install the plugin and run your first agent-assisted dev session
- Collaborative workflows -- How agents and developers work together with
okteto up+okteto exec - Autonomous workflows -- How to set up ticket-to-PR pipelines where agents own the full lifecycle
- okteto.yaml as the single source of truth -- How agents auto-discover services, no extra config needed
- The
okteto uprule -- Why agents must never runokteto upand what to use instead - Testing with agents -- How
okteto testenables agents to validate changes against live environments - Preview environments for agents -- How each agent gets isolated environments that don't conflict
- Agent tries to run
okteto up(it hangs -- it's interactive) - Agent uses kubectl/helm directly instead of
okteto deploy(Okteto loses track of resources) - Agent builds Docker images locally instead of using
okteto build(no access to Okteto Build Service) - Agent hardcodes service names instead of reading
okteto.yaml(breaks portability) - Agent runs
okteto destroywithout authorization (destroys shared resources)