AI-powered IRC agent with multi-provider LLM support
Project description
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 optionallycryptographyfor 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) |
--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
- docs/configuration.md -- IRC and AI provider configuration
- docs/commands.md -- command registry and decorator API
- docs/extending.md -- subclassing IRCBot, event hooks
- docs/ai-agent.md -- AI agent architecture, providers, tools, and history
- docs/ai-output-disclaimer.md -- AI output disclaimer and conditions of use
- docs/not-a-companion.md -- project scope and intended use
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentirc-1.1.1.tar.gz.
File metadata
- Download URL: agentirc-1.1.1.tar.gz
- Upload date:
- Size: 45.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d4caf70fe73a1326e8a7509b456d82d10f0a0f3024620bf2cbe04a12f944f2
|
|
| MD5 |
21e9aa47aed8caaf4332d2b3336aa71a
|
|
| BLAKE2b-256 |
fefa5c0e9073161591fd87444cfcec4315bc396b00bce8b1c0464c2b97ccb5ee
|
Provenance
The following attestation bundles were made for agentirc-1.1.1.tar.gz:
Publisher:
pypi-publish.yml on h1ddenpr0cess20/agentirc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentirc-1.1.1.tar.gz -
Subject digest:
43d4caf70fe73a1326e8a7509b456d82d10f0a0f3024620bf2cbe04a12f944f2 - Sigstore transparency entry: 1219068031
- Sigstore integration time:
-
Permalink:
h1ddenpr0cess20/agentirc@065ab18fc4d79e7a1a9212d3c6cda16e0d5c18a0 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/h1ddenpr0cess20
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@065ab18fc4d79e7a1a9212d3c6cda16e0d5c18a0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentirc-1.1.1-py3-none-any.whl.
File metadata
- Download URL: agentirc-1.1.1-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea7cf21f3e8e201ce378725937720ceaabf9eb44154598741b07fb1dbe3b412
|
|
| MD5 |
075a7b925195aab45d591e590d2e8db2
|
|
| BLAKE2b-256 |
96dd2eb5dc5f659c801f43ebec4f102ed51b0f9f00f016e4c1bc7ebaff451649
|
Provenance
The following attestation bundles were made for agentirc-1.1.1-py3-none-any.whl:
Publisher:
pypi-publish.yml on h1ddenpr0cess20/agentirc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentirc-1.1.1-py3-none-any.whl -
Subject digest:
1ea7cf21f3e8e201ce378725937720ceaabf9eb44154598741b07fb1dbe3b412 - Sigstore transparency entry: 1219068037
- Sigstore integration time:
-
Permalink:
h1ddenpr0cess20/agentirc@065ab18fc4d79e7a1a9212d3c6cda16e0d5c18a0 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/h1ddenpr0cess20
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@065ab18fc4d79e7a1a9212d3c6cda16e0d5c18a0 -
Trigger Event:
release
-
Statement type: