Skip to main content
Coder is an open source platform you install on your infrastructure for remote development environments (workspaces): machines with Docker and whatever your project needs. With this plugin, your agent uses them for what it can’t do in its own workspace: run containers, bring a whole stack up, build something heavy or run long tests.

What it can do

  • See the templates you gave it and its workspaces.
  • Create, start, stop and delete workspaces (per the switch and your OK).
  • Run commands in a workspace, and long jobs (installs, builds, tests) that keep going even if it pauses, while it follows them.
  • Start a stopped workspace, or rebuild it if its machine is gone (say, a spot VM your cloud took back), before working.
  • Bring a workspace’s ports to its side to try a website or an API.
  • Use your GitHub token (if the agent has the GitHub plugin) to clone and push from the workspace. The workspace gets no other files from the agent: they go through git.
What each workspace has, how long it lasts and what to use it for are up to your templates and what you tell your agent.

How it connects

1

Have a Coder server

It must be reachable over HTTPS from the internet, with at least one template. See Coder’s documentation.
2

Create a user for your agent

Recommended: a Coder user of the agent’s own, with access only to the templates it will use. That way it doesn’t see your other workspaces.
3

Add it to an agent

From Plugins → Coder → Add to an agent, or ask your agent in the chat. See Add a plugin. Your agent asks you in the chat for the server’s address, like https://coder.yourcompany.com, and sends you a link for the token.
4

Paste the token in your agent's link

In Coder, as the agent’s user: your avatar → Tokens → new token. Paste it in the one-time link, not in the chat: if you paste it in the chat, it won’t use it and asks you to delete it in Coder and make another. See Keys and values.
5

Your agent confirms

It tries the connection, tells you which user it signed in as, which templates it sees and which workspaces it has, and lets you know it’s ready.

How it keeps you safe

  • Manage workspaces (“Create, start and stop the workspaces a task needs without asking you each time (it tells you). Deleting one, or anything bigger or longer than usual, always with your OK. Off, it asks for your OK for each one.”), off to start with: whenever it wants to create, start, resize or delete a workspace, it tells you the name, the template, the size and that it costs while it’s on, with the Confirm and Change options. Stopping one never needs your OK.
  • With Manage workspaces on, it creates, starts and stops what a task needs on its own and tells you in a line. It still asks for your OK to delete a workspace it didn’t create in that task, for anything bigger than the template’s largest preset and to keep one on for more than 8 hours. You change it on the Coder card, in the agent’s Tools tab.
  • It stops what it starts when it’s done. Before stopping or deleting it checks no work is left unpushed: unless you tell it your template keeps files, it assumes stopping may lose them (and deleting always does).
  • What it sees in a workspace (logs, files, pages) is data to it, not orders.
  • It doesn’t show your token or a workspace’s secrets in the chat, and it doesn’t expose a workspace’s ports to the internet unless you ask.
  • Your Coder server sets the real limits: templates, quotas and auto-stop. If it hits one, it tells you instead of working around it.

Things to ask

  • “Bring this repo’s whole stack up in a workspace and check that sign-in works.”
  • “Run the integration test suite in Coder and tell me what failed.”
  • “Which of my workspaces are on?”
  • “Stop everything that’s on.”

Limits

  • It uses your Coder server: minai doesn’t provide one.
  • A workspace that’s on costs whatever it costs on your infrastructure.
  • The ports it brings to its side are for it alone; you open them from Coder’s dashboard.

If you remove it

Your agent loses access at once. The token is deleted from minai with the plugin; to close it completely, delete it in Coder too. Workspaces stay in your Coder until you delete them. See Remove a plugin.

GitHub

Repos, issues and pull requests.

Google Cloud

Logs, Kubernetes, VMs and costs.