Coding · How-to

How to Use OpenFlow for Free: Beginner's Guide

Learn how to use OpenFlow to visually build multi-agent AI workflows for free, from installing with Bun to connecting the canvas and running parallel agents.

Illustration for the article: How to Use OpenFlow for Free: Beginner's Guide
Check before you rely on it. Free plans, limits and prices change often. Last reviewed 25 Nov 2026. Confirm current details on the tool's own site.

OpenFlow: official site

Learning how to use OpenFlow allows developers and technical teams to design, coordinate, and run multi-agent artificial intelligence pipelines directly from their local machines. OpenFlow is a visual builder for multi-agent AI workflows built on top of the opencode headless engine (opencode serve). Because the software is open source under the MIT license, you can run the entire system on your own computer without subscription fees or locked tiers. Note that if you came looking for how to use OpenFlow in Snowflake or how to access Snowflake OpenFlow, those queries refer to enterprise cloud data environments. This guide is specifically about the open-source AI agent orchestrator hosted on GitHub.

OpenFlow simplifies complex agent orchestration by providing a canvas where you can place role cards and connect them into structured processing pipelines. By running workflows with parallel agents, it can delegate specialized development tasks—such as planning, software architecture, and code generation—across independent agents. This guide explains how to install the necessary runtimes, start both the headless engine and the visual canvas, avoid common configuration pitfalls, and keep your local agent workflows running smoothly.

What You Will Achieve and What You Need

By following this guide, you will set up a complete local OpenFlow environment. You will be able to launch the opencode headless backend, open the visual canvas in your browser, and wire multi-agent workflows (such as a planner-to-architect-to-coder pipeline) to execute development tasks.

Before you begin the setup process, ensure your machine meets the confirmed prerequisites:

  • Bun runtime: You must have Bun version 1.3 or newer installed. OpenFlow relies on Bun for package management and orchestrating internal processes.
  • Git: A working Git installation to clone the repository from GitHub.
  • Operating system: A compatible operating system with command-line access. OpenFlow provides cross-platform setup commands for Windows, macOS, and Linux.
  • Available ports: Unrestricted access to ports 4096 (used by the opencode engine) and 5174 (used by the visual canvas).

Step-by-Step Guide: How to Use OpenFlow

Because OpenFlow is distributed as open-source software, there is no hosted web portal or one-click cloud deployment provided directly by the project. Everything is managed locally via the terminal and your browser. Follow these numbered steps to get the tool up and running.

  1. Install Bun and Git: Confirm that Git and Bun 1.3 or newer are installed on your workstation. You can verify your Bun installation in your terminal by running bun --version. If you do not have Bun 1.3+, download and install the current release before proceeding.
  2. Clone the official repository: Open your terminal or command prompt and clone the repository to your local drive from the official OpenFlow GitHub repository using the standard git clone command. Once downloaded, change your working directory into the project folder.
  3. Install project dependencies: Run bun install within the root directory of the cloned project. Be aware that the first installation downloads all necessary packages for both the engine and the frontend interface, which makes the initial installation relatively large. Let the process finish completely.
  4. Launch the engine and canvas: Start the platform by running the project startup script: bun openflow.ts. This orchestration script is designed to handle process startup, manage port reuse, and free dead runs automatically. It initializes the headless engine on port 4096 and boots the visual canvas interface on port 5174.
  5. Access the visual interface: Open your web browser and navigate to local port 5174 (typically http://localhost:5174). Refer to the tool's built-in onboarding and interface prompts for specific layout interactions. From the canvas, the visual interface connects directly to the headless engine running at http://localhost:4096.
  6. Construct and wire your agent pipeline: Use the canvas to drag role cards into your workspace and connect them into an execution sequence. A standard workflow pattern supported by the framework is planner → architect → coder. Each card represents a discrete role in the pipeline, allowing the engine to orchestrate tasks across real parallel agents.
  7. Execute and monitor agent tasks: Trigger your workflow according to the tool's interface prompts. The underlying headless engine coordinates execution, allowing parallel agents to process steps according to the sequence and configuration defined on the canvas.

Common Mistakes When Using OpenFlow

Working with local agent environments often involves subtle configuration quirks. Keeping these common mistakes in mind will save you time during setup and pipeline execution:

  • Editing opencode.json without restarting: The opencode engine caches your project configuration file (opencode.json) during its boot sequence and never re-reads it while active. If you modify your project configuration, you must fully terminate and launch a fresh engine instance for those changes to apply.
  • Running conflicting background software on fixed ports: OpenFlow relies on fixed port assignments: 4096 for the opencode engine and 5174 for the canvas. If another local server, development container, or background process occupies either of these ports, startup will fail.
  • Using an outdated version of Bun: Attempting to install or run the project using Bun versions older than 1.3 will cause package installation failures or runtime script errors. Always verify your Bun runtime version before installation.
  • Modifying upstream engine packages directly: OpenFlow is architected as a fork of opencode, with the OpenFlow-specific codebase contained cleanly inside the packages/flow directory. No upstream packages are modified by default. Modifying core engine files outside of packages/flow can cause merge conflicts when pulling upstream engine updates.

Tips for Better Multi-Agent Workflow Results

To get the most out of your multi-agent coding workflows, consider how you structure tasks across role cards:

  • Segment agent responsibilities clearly: Take advantage of role separation. When building workflows like planner → architect → coder, ensure that planning steps produce high-level requirements before passing tasks to the architecture and coding agents. This visual structure mirrors real-world software engineering discipline.
  • Leverage the startup automation: Always start the application using bun openflow.ts rather than attempting to launch individual services manually. The startup script is programmed to manage port allocation and clean up lingering dead runs automatically.
  • Keep upstream merges clean: Because OpenFlow lives in packages/flow and leaves the base engine unmodified, you can pull new updates from the opencode upstream repository to receive core engine performance fixes without breaking visual canvas features.

Free-Plan Limits to Keep in Mind

Because OpenFlow is an open-source project released under the MIT license, there are no tiered pricing plans, usage fees, or artificial token limits enforced by the project itself. (You can review standard open-source platform hosting conditions via GitHub Pricing if planning repository forks or remote CI workflows). However, running OpenFlow locally involves several practical constraints:

  • Source-only installation: There is no managed cloud hosting or packaged binary installer; you must install and compile the software from source code using Git and Bun.
  • Large initial download: The initial run of bun install downloads a comprehensive set of engine and canvas packages, requiring adequate local storage and a stable internet connection.
  • Local system resource consumption: Running multiple parallel coding agents places demands entirely on your local workstation's CPU, memory, and runtime environment.
  • Fixed port binding: You cannot freely switch port bindings without reconfiguring the underlying network setup, as the system defaults to ports 4096 and 5174.
  • No cloud synchronization: Since OpenFlow runs locally, your pipelines, workspace states, and configurations remain on your machine unless manually exported or tracked through version control.

Troubleshooting OpenFlow Setup and Runtime Errors

If you encounter issues while setting up or executing workflows, check the following troubleshooting steps:

  • Address port conflicts: If the engine or canvas fails to start, verify that ports 4096 and 5174 are free. While bun openflow.ts automatically handles port reuse and attempts to clear dead runs, an unyielding external process running on either port will block initialization. Terminate conflicting processes manually and rerun the startup script.
  • Clear stale configuration state: If newly added settings in opencode.json do not appear or behave as expected, remember that the engine caches this file on boot. Stop the running OpenFlow process completely and start it again with bun openflow.ts.
  • Resolve failed dependencies: If bun install terminates with dependency errors, ensure your Bun version is at least 1.3. Updating Bun via the command line and running a fresh installation in a clean directory generally resolves package resolution errors.

Alternatives to OpenFlow

If you are exploring different ways to build visual AI pipelines or agent workflows, several other tools provide alternative approaches to orchestration:

  • Flowise: An open-source user interface for building LLM applications and agent chains.
  • LangFlow: A visual framework designed for rapid prototyping of multi-agent and retrieval systems.
  • Dify: An open-source LLM application development platform featuring visual workflow management.
  • n8n: A workflow automation platform offering node-based visual routing with extensive AI integration options.
  • CrewAI: A framework focused specifically on orchestrating autonomous, role-playing AI agent teams.

Frequently asked questions

Is OpenFlow completely free to use?

Yes. OpenFlow is open-source software licensed under the MIT license, meaning it is free to download, install, and run locally without subscription plans.

What software do I need before installing OpenFlow?

You need Git to clone the repository and Bun version 1.3 or newer to install packages and run the application.

Why are my changes to opencode.json not taking effect?

The opencode engine caches the opencode.json file at boot and never re-reads it during execution. You must restart the engine to apply configuration changes.

Which ports does OpenFlow use by default?

OpenFlow uses port 4096 for the opencode headless engine and port 5174 for the visual workflow canvas.

Keep reading