Skip to content

cordless

Discord bots, cordless.
from cordless import Cordless
bot = Cordless()
@bot.command("hello", description="Say hello")
async def hello(ctx, name: str = "world"):
await ctx.send(f"Hello, {name}!")
handler = bot.handler()
Terminal window
cordless deploy
# → https://abc123.execute-api.eu-west-2.amazonaws.com/

no server required

runs entirely on AWS Lambda. no process to keep alive, no servers to manage, no idle cost.

components v2

first-class support for containers, sections, mediagallery, and all of discord’s modern UI primitives.

deferred interactions

commands and buttons that take time stay responsive — cordless handles the async Lambda handoff automatically.

one command deploy

cordless deploy packages your code, provisions Lambda, wires API Gateway, and sets up IAM. done.

local dev server

cordless dev runs your bot on localhost with hot reload and a public tunnel. test in discord without deploying.


Terminal window
pip install "cordless[deploy]"