Practical guide6 min

Getting started

Install Conflux, initialize a project, create the first change proposal, and complete the first run.

This guide is the shortest path from zero setup to a first useful Conflux run.

Important

Conflux is not itself a coding agent. It is the orchestrator that launches and coordinates tools such as Claude Code, Codex, and OpenCode.

Prerequisites

Before you install Conflux, confirm three things:

  • Rust and Cargo are available.
  • You already have a git-managed project, or you can create one.
  • At least one external coding agent CLI is installed and authenticated.
Terminal
cargo --version claude --version claude -p 'hi'

If you prefer another agent, replace the claude checks with the CLI you actually plan to use.

Install the CLI

Use crates.io unless you are intentionally testing a local build.

Terminal
cargo install cflx cflx --version

Prepare a project directory

Conflux uses git worktree, so the target project must be under git.

Terminal
mkdir -p ~/myproject cd ~/myproject git init

If you already have a repository, switch into it instead.

Install bundled skills

The first practical setup step is to install the bundled cflx-* skills for your coding agent.

Terminal
cflx install-skills --claude

This places the skills under ./.claude/skills/ for the current project.

Generate the config file

Conflux uses .cflx.jsonc.

Terminal
cflx init

The generated template is usually enough for the first run. If you need another template, use cflx init --template codex or cflx init --template opencode.

Create the first change proposal

Conflux works on OpenSpec changes. A minimal way to create one is to invoke the proposal skill from your coding agent session.

Inside your coding agent chat

/cflx-proposal display hello world in python

Review the generated change directory and make sure these files look sensible:

  • proposal.md
  • tasks.md
  • specs/.../spec.md

When the proposal is acceptable, commit it.

Terminal

git add openspec/changes/add-hello-world git commit -m 'proposal: add-hello-world'

Run Conflux

Make sure the working tree is clean first.

Terminal
git status

Then choose one of these modes:

ModeCommandBest for
TUIcflxInteractive local use
Headlesscflx runScripted or non-interactive runs
Servercflx serverBrowser dashboard and API access

In the TUI, the shortest path is:

  1. Select the change with arrow keys or j/k.
  2. Press Space to mark it.
  3. Press F5 to start execution.

What success looks like

A successful first run usually means all of these are true:

  • A change moved through apply and acceptance without leaving the repository in a confusing state.
  • You can inspect logs and understand what happened.
  • You know whether the generated diff is ready to merge or needs follow-up work.

Tip

For the first evaluation, optimize for visibility rather than full automation. Running cflx server makes the feedback loop much easier to understand through the dashboard.

Common first-run problems

The agent command fails immediately

Check that the CLI works outside Conflux first. If claude -p 'hi' or the equivalent direct command fails, fix that before debugging Conflux.

The proposal is too large

Split the work into smaller OpenSpec changes. Conflux performs best when a change is clear and bounded.

The repository is dirty before execution

Clean the working tree before you run. Unrelated local edits make it harder to trust the result.

Related guides

All guides