Discord

Text your agent on Discord. Your agent is a bot in a server of yours, and it answers you and no one else.

Connect it

Make an application at Discord's developer portal and give lnk its bot's token.

lnk agent connect discord

Turn on the bot's Message Content intent, then paste its token. Add the bot to a server of yours with the link lnk prints, and send it the code in a direct message within 10 minutes.

To connect without prompts, as from a script:

LNK_DISCORD_TOKEN=... lnk agent connect discord

Disconnect

lnk agent disconnect discord

disconnect forgets Discord's tokens and restarts your agent if it runs. The bot stays yours, so delete it at Discord's developer portal if you no longer want it.

Troubleshooting

SymptomFix
connect discord asks for Message ContentBot page: turn on Message Content Intent.
You can't message the Discord botAdd it to your server with the printed link.