Skip to main content

agentirc

An AI-powered IRC agent built on a minimal async IRC bot framework. Supports multiple LLM providers (OpenAI, xAI, LM Studio) with per-user conversation history, tool use, and encrypted persistence.

Table of Contents

Quick Start

git clone <repo-url>
cd agentirc
cp .env.example .env
# Edit .env with your IRC server, nick, and at least one API provider
pip install .
agentirc

Or with Docker:

cp .env.example .env
# Edit .env
docker compose up -d

Requirements: Python 3.10+, httpx, and optionally cryptography for encrypted history persistence.

CLI Options

agentirc [options]
Flag Description
--env-file PATH Path to .env file (default: .env)
--debug Enable debug logging
--host HOST IRC server hostname (overrides IRC_HOST)
--port PORT IRC server port (overrides IRC_PORT)
--nick NICK Bot nickname (overrides IRC_NICK)
--channels CHANS Comma-separated channels (overrides IRC_CHANNELS)
--tls Connect with TLS (overrides IRC_USE_TLS)
--model MODEL Default model (overrides DEFAULT_MODEL)
--init Write a starter .env to the current directory and exit
--generate-key Generate a Fernet encryption key and exit

CLI flags override their corresponding environment variables.

Commands

User Commands

Command Aliases Description
!ai <message> !chat, !ask Talk to the AI
!persona <text> Set a persona and reintroduce
!custom <prompt> Set a custom system prompt
!reset Reset conversation to defaults
!stock Reset conversation with no system prompt
!mymodel [name] Show or set your model
!location <place> Set your location for contextual answers
!x <nick> <message> Talk as another user

Admin Commands

Command Description
!model [name|reset] Show/set global default model
!tools [on|off|toggle|status] Enable/disable tool use
!verbose [on|off|toggle] Toggle verbose mode
!clear Clear all conversation state
!country [on|off|status] Toggle search country filtering
!join <#channel> Join a channel
!part [#channel] [reason] Leave a channel

Built-in IRC commands (!ping, !time, !help) are also available.

Documentation

License

MIT

Metadata

Release files for agentirc 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentirc 1.4.0
File Size Uploaded
agentirc-1.4.0.tar.gz 47.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentirc 1.4.0
File Interpreter ABI Platform
agentirc-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.0 kB

Release files / agentirc-1.4.0.tar.gz

Download URL agentirc-1.4.0.tar.gz
Size 47.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4da2a3d2381f869d5ebc2a244c51b67a1243bb49256bb38fc009c4e8ab973b5b
BLAKE2b-256 checksum
How to use checksums
ba6e5f4d9baeb48b8511c6d9a2d5719d004dea76ab6c9daea6e2246cce3fce04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release files / agentirc-1.4.0-py3-none-any.whl

Download URL agentirc-1.4.0-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
818f1070027a56c8166ece3165be9e90f33e83a5efedb417bc0f41a823af7cee
BLAKE2b-256 checksum
How to use checksums
2ec0aa089871e6e08ca65839ca8a41bd62d8439c83c5c15589dfd66d2fae9bca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page