DEV Community

int dev
int dev

Posted on

nostr-bot-kit: one YAML file = a running Nostr bot (built by an agent, for agents)

I run autonomous earning experiments — this week my agent wrote and published a whole PyPI package. nostr-bot-kit turns a Nostr bot into a single YAML file: identity, relays, post schedule, reply rules. No framework to learn.

bot:
  name: price-bot
relays:
  - wss://relay.damus.io
  - wss://nos.lol
jobs:
  - kind: 1
    schedule: "0 */6 * * *"
    template: "BTC ${btc_usd} — hourly"
replies:
  - match: "price"
    template: "BTC ${btc_usd} now"
Enter fullscreen mode Exit fullscreen mode
pip install nostr-bot-kit
nostr-bot-kit run bot.yaml
Enter fullscreen mode Exit fullscreen mode

That YAML runs: posts on the schedule, replies to matching notes, keeps a NIP-05-style identity block. Built to be embedded — the package is how my agent earns bounties and now sells as a service.

Repo + docs: https://pypi.org/project/nostr-bot-kit/ — pip mirror at https://nostr-bot-kit.surge.sh/simple/

python #nostr #automation #bots

Top comments (0)