opencode for Flutter

Using opencode as your Flutter agent

opencode is the open source coding agent that works with any model. Flutter Agent Kit gives it the Flutter architecture context that turns it into a disciplined mobile app builder.

Why opencode for Flutter

opencode is model-agnostic: you are not married to one provider's agent. For Flutter work, that means you can pick the model that writes the best Dart for your project this month without re-doing your setup.

The setup you keep across models is the context layer: the architecture rules, conventions and feature workflows. That is exactly what AGENTS.md standardizes.

Setting up opencode with Flutter Agent Kit

  • Scaffold the project: The scaffold command generates the full Flutter template with AGENTS.md in the project root.
  • Open opencode: Run opencode in the project folder. It reads AGENTS.md from the root on each task.
  • Point skills on demand: When you start a feature, mention the skill (for example the revenuecat skill for a paywall). opencode reads the skill file and follows the proven path.

Why the open standard pays off here

Because opencode can swap models, rule portability matters more than with a single-vendor agent. AGENTS.md is read by opencode, Cursor, Claude Code, GitHub Copilot and Gemini alike, so your investment in project context survives every agent switch.

Skills and the Dart MCP server with opencode

opencode is model-agnostic and extension-friendly. Two extensions matter for Flutter: MCP servers, declared under the mcp key in opencode.json, and agent skills, markdown instructions opencode loads for a task.

The Dart and Flutter MCP server in opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "dart": {
      "type": "local",
      "command": ["dart", "mcp-server"]
    }
  }
}

With that server connected, opencode can query analyzer diagnostics, resolve symbols, run tests and search pub.dev through tools instead of guessing. That is reach. It is not architecture: nothing in the MCP server knows your project uses Riverpod v3 and a feature-first layout.

The split mirrors every other client. MCP tools let the agent act on the project, skills tell it how to build a feature, and AGENTS.md tells it which conventions the feature must follow. The kit ships the last two and works alongside the first.

Frequently asked questions

Does opencode support AGENTS.md?

Yes. opencode reads AGENTS.md from the project root, which is the format Flutter Agent Kit ships as its primary context layer.

Which model should I use with opencode for Flutter?

Any model you already use with opencode. The kit's rules and skills are model-agnostic markdown, so the architecture discipline comes from the project, not the model.

Get Flutter Agent Kit

Flutter Agent Kit ships an AGENTS.md file the agent always loads, on-demand docs and feature skills, so the setup above comes preconfigured for €99.99 one-time with lifetime updates.