---
title: "Claude Code / Codex in Discord threads is shipped now!"
date: 2026-02-27
canonical: https://solmaz.io/x/2027176406426276270/
x_url: https://x.com/onusoz/status/2027176406426276270
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
---

Claude Code / Codex in Discord threads is shipped now!

To enable, copy and paste this to your agent:

```
Enable feature flags:

acp.enabled=true
acp.dispatch.enabled=true
channels.discord.threadBindings.spawnAcpSessions=true

Then restart. After restarting:

Start a codex (or claude code) discord thread using ACP, persistent session, just tell it to write a haiku on lobsters to initialize acpx for the first time
```

You may need to nudge your agent to “continue” after restarting

The first implementation is very barebones, I have made it work in a clean way and merged. In a codebase like openclaw’s, it’s better to develop incrementally

Please send any issues my way. I am already aware of some and working on to fix them

*Part 1/2 of a thread; root: https://solmaz.io/x/2027176406426276270/*
*Quotes a post by @steipete (https://x.com/steipete/status/2027161793353683171); its text is omitted here because it is not covered by this site's license.*
