Skip to content
AddHunt
Slack apps

CrewHaus

Open-source compiler that turns one agent spec into code

Works with macOS, Linux, WindowsOpen source

  • Open source
  • Licence: Apache-2.0

In short

CrewHaus is an open-source compiler for AI agents: one crewhaus.yaml spec is compiled into a CLI agent, a Slack bot, an eval harness or other runtime shapes. It is for developers who want the same agent behaviour across several deployments without keeping separate code in sync.

What you get

  • Single crewhaus.yaml spec per agent
  • Compiles to CLI, Slack bot or eval harness
  • Readable generated TypeScript code
  • Targets from RAG pipelines to browser agents
  • Eval tuning with crewhaus optimize
  • Installs via the chvm version manager

The details

CrewHaus treats an AI agent as a spec to compile rather than code written against a framework. The agent is described once in a crewhaus.yaml file with its model, instructions and tools. The compiler parses it, lowers it into an intermediate representation and emits readable code for the chosen target.

One spec, many shapes

Changing the target line and recompiling produces a different deliverable from the same agent:

  • A self-contained TypeScript CLI agent with a streaming chat loop that runs wherever Bun runs
  • A long-running Slack bot with threaded routing and signing-secret verification
  • An eval bundle with graders and a fixture set, tuned with crewhaus optimize

Other targets include stateful graphs, RAG pipelines, multi-agent crews, research and batch workers, voice, browser agents, workflows and managed multi-tenant setups. Because every shape is emitted from the same core, the versions do not drift apart.

Getting started

Installation goes through the chvm version manager from npm on macOS, Linux or Windows, followed by crewhaus init, compile and run. The project presents itself as a build tool that sits above agent runtimes, comparing the idea to LLVM or Terraform, and publishes a white paper and a book next to its docs. CrewHaus is written in TypeScript for Bun and licensed under Apache-2.0.

Alternatives to CrewHaus

All alternatives

Questions

Is CrewHaus an agent framework?

No. It describes itself as a compiler: the agent is written once as a spec and emitted as idiomatic code for each target runtime.

How is it installed?

Install the chvm version manager from npm, select the latest version, then use crewhaus init, compile and run.

Which license does it use?

CrewHaus is open source under the Apache-2.0 license.

More like this