Dopys (Ukrainian допис — “a post”) — an AI ghostwriter that turns a one-line idea into a finished Telegram post in your voice.
It learns your style from your own past posts (samples/*.txt), not from a
generic “write like an influencer” prompt. Idea in → on-brand draft out. Pure
CLI by default — no Telegram credentials needed to use it.
- Drop a handful of your real past posts into
samples/as.txtfiles. - Run
dopys.pywith a one-line idea. - Dopys studies the corpus (tone, rhythm, emoji habits, how you open/close) and writes one new post that sounds like you — ready to review and publish.
The style corpus is sent with prompt caching, so every post after the first is cheaper and faster.
pip install -r requirements.txt
export ANTHROPIC_API_KEY=sk-ant-... # Windows: set ANTHROPIC_API_KEY=...
python dopys.py "why most people don't need a new tool, they need a system"
# or write to a file:
python dopys.py -o draft.txt "launch announcement for Vidbytok"Ships with two sample posts so it runs immediately — replace them with yours.
Env: DOPYS_MODEL (default claude-sonnet-4-6), DOPYS_SAMPLES.
Publishing is intentionally out of scope of the core: Dopys writes the draft,
you approve and post it. Wire your bot/Telethon flow around the generate()
function if you want a review-channel pipeline — the safety review stays manual.
Python 3 · anthropic SDK · prompt caching · zero required external services.
MIT © Oleksandr Bilov (@Dominant-dev)