Using dv (Discourse Vibe) to configure Discourse AI in development

dv - Discourse Vibe - https://github.com/samsaffron/dv is a tool I have been building that lets you easily work on multiple pre-configured Discourse dev containers.

I built it to make it easier to work with AI agents, but as time progresses it is doing more and more things.

Among the things it can do:

  • Checkout a PR in a container
  • Extract and import code into a container
  • Run multiple Discourse Dev instances on multiple ports
  • Run a large amount of AI agents inside containers
  • and lots more

Over the weekend I built a nifty helper to help configure AI inside a running dev container.

To run this on your own machine.

  • Install docker
  • Run the install script in the dv Readme (or go build it)
  • Run dv build (if you have ample memory) or dv pull if you are memory contrained. This will give you the base image.
  • Run dv new some-name (dv ls to list cotainers)
  • Run dv config ai and configure your llm using the tui

  • dv config ai --help to learn about possible API keys we look for

  • after adding the LLM you will have a working fully configured dev environment with Discourse AI

  • Visit localhost:4200/session/admin/become to log in as admin

  • Talk to robot (ai bot in sidebar)

Video demo:

I also posted how to use dv + claude code router + discourse MCP at:

3 Likes