Formatters

Let OpenABCode format code with project-approved tools.

Built-in

Formatter support follows opencode behavior and should be scoped per language or project.

How it works

Formatting runs as a local tool operation. Provider calls do not format files directly.

Configure

Prefer repository formatter commands so local and CI behavior match.

{
  "formatter": {
    "command": "bun run format"
  }
}