Skip to main content

Self-hosted Telegram AI agent. 10 tools, skills, subconscious, CLI learning.

Project description

IndieClaw

PyPI Python CI python-doctor License: MIT

Personal AI agent on Telegram. Self-hosted, powered by Claude.

Requires: An Anthropic API key or Claude Pro/Max subscription. IndieClaw uses Claude as its reasoning engine — you need one or the other to run it.

Install

pip install indieclaw

Or with uv:

uv tool install indieclaw

Then set up:

indieclaw setup

Setup asks for your Telegram bot token, user ID, and Claude auth. Get a bot token from @BotFather, then send /start to your bot — it will show your Telegram user ID.

Run

indieclaw start       # background daemon
indieclaw start -f    # foreground
indieclaw chat        # interactive TUI (no Telegram needed)
indieclaw logs -f     # stream logs
indieclaw stop
indieclaw restart

indieclaw chat launches a terminal UI for chatting directly with your agent — useful for testing, debugging, or when you don't want to go through Telegram.

On Linux with systemd, indieclaw setup installs and starts the service automatically.

Commands

Command
/status Model, tools, token usage
/model Switch Claude model
/effort Switch thinking effort
/reset Clear conversation history
/restart Restart the bot
/update Pull latest and restart
/cc <prompt> Live Claude Code session (streaming)

Workspace

Everything lives in ~/.indieclaw/:

File Purpose
SOUL.md Agent identity and instructions
USER.md Your profile (name, timezone, preferences)
MEMORY.md Persistent memory across sessions
crons.yaml Scheduled jobs
skills/*/SKILL.md Skill docs injected into system prompt
tools/*.py Custom tools — hot-loaded, no restart needed
sessions/*.jsonl Conversation logs
handover.md State snapshot across restarts
subconscious.yaml Background reflection threads

Override the workspace path: INDIECLAW_HOME=/path/to/dir

Subconscious

A background reflection loop that runs every 2 hours. The agent reviews open threads, recent conversations, and memory — then decides whether to act (send a message, spawn a task) or stay quiet.

Threads are tracked in ~/.indieclaw/subconscious.yaml. The agent can add, resolve, or keep threads across cycles. Disable it or change the interval in ~/.indieclaw/config.yaml:

subconscious_enabled: false
subconscious_interval_hours: 4

Custom tools

Drop a .py file in ~/.indieclaw/tools/ with a SCHEMA dict and execute() function. Available on the next message, no restart needed.

Update

indieclaw update       # from terminal
/update               # from Telegram

Saves a handover note before restarting and picks up where it left off.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indieclaw-0.1.36.tar.gz (207.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

indieclaw-0.1.36-py3-none-any.whl (88.7 kB view details)

Uploaded Python 3

File details

Details for the file indieclaw-0.1.36.tar.gz.

File metadata

  • Download URL: indieclaw-0.1.36.tar.gz
  • Upload date:
  • Size: 207.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for indieclaw-0.1.36.tar.gz
Algorithm Hash digest
SHA256 3ebf4a6ebabff50d4156fbf37570be7ed75a949faa9f073d3a69689ce4cc48ae
MD5 a44b1bf99f0fd83a12febf5d8093e058
BLAKE2b-256 cf67dc0743286b9f48babbdf7e908dd163ee80b5b933cb2b914d2191fbd623d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for indieclaw-0.1.36.tar.gz:

Publisher: release.yml on saikatkumardey/indieclaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file indieclaw-0.1.36-py3-none-any.whl.

File metadata

  • Download URL: indieclaw-0.1.36-py3-none-any.whl
  • Upload date:
  • Size: 88.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for indieclaw-0.1.36-py3-none-any.whl
Algorithm Hash digest
SHA256 99b9860a84a5c5ca1d65411e61acc6c56cd313aa63bd2c4a2e68f8859e97d947
MD5 5280577c1f1108d85b264684d70e19e0
BLAKE2b-256 6f7086771f1224831b3bf157ee25a67b740817999669e8f75e0ecc4a7070eac0

See more details on using hashes here.

Provenance

The following attestation bundles were made for indieclaw-0.1.36-py3-none-any.whl:

Publisher: release.yml on saikatkumardey/indieclaw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page