sweep
Health Warn
- License Γ’β¬β License: AGPL-3.0
- Description Γ’β¬β Repository has a description
- Active repo Γ’β¬β Last push 0 days ago
- Low visibility Γ’β¬β Only 5 GitHub stars
Code Pass
- Code scan Γ’β¬β Scanned 1 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions Γ’β¬β No dangerous permissions requested
No AI report is available for this listing yet.
π€ A self-hosted Discord bot powered by an LLM with tool calling & per-channel context
π§Ή Sweep
Sweep is not like a traditional Discord bot. It understands complex requests and is able to act directly with the Discord API using tools. No hardcoded commands.

β¨ Features
- Tool calling to interact directly with the Discord API
- A per-channel context so messages don't get mixed up
- Uses an OpenAI-compatible endpoint, so both selfhosted and non-selfhosted backends are supported
- Versatile use cases. You are not tied to any hardcoded logic
π‘οΈ Safety
Sweep implements safety measures to prevent unprivileged users from manipulating it into performing unauthorized actions. Note that LLMs can still be tricked.
- Approval system: Users must explicitly grant permission via an embed button before Sweep can act on their behalf.

π OpenAI-Compatible Endpoint
Sweep supports any OpenAI-compatible endpoint. Tools that offer such endpoints are:
β Requirements
Rust requirements:
- Sweep is always developed on the latest Rust version. Backwards-compatibility is not guaranteed.
LLM requirements:
- Tool calling support
- There is no explicit requirement for a parameter count, but be aware that smaller models are more likely to mess up requests.
π¬ Tested With
We have a discussion category purely for model ratings. Check it out!
β‘ Quickstart
First, clone the repository:
git clone https://github.com/BaxoPlenty/sweep.git
Then, configure Sweep via your .env file (you may also configure the OpenAI endpoint):
DISCORD_TOKEN=your_discord_bot_token
MODEL=your_model
Lastly, run Sweep:
cargo run --release
βοΈ Configuration
π« OpenAI Endpoint Configuration
Sweep uses async-openai for connecting to the OpenAI-compatible endpoint. You can configure the used endpoint with environment variables. The most important ones are:
OPENAI_API_KEY: Your API key (if needed)OPENAI_BASE_URL: The base url of the endpoint (default:https://api.openai.com/v1)- See more environment variables here
π§Ή Sweep
The binary expects the following environment variables to be present:
DISCORD_TOKEN: The Discord bot token for logging into the Discord userMODEL: The model that is used for inference
You may use a .env file.
πΊοΈ Roadmap
You can check existing feature requests here. You can also submit new feature requests.
π£ Common Errors
Unexpected Endpoint: Make sure that the OPENAI_BASE_URL does not have a trailing/
π€ Contributing
Pull requests and issues are very welcome! This applies to bug fixes, bug reports, feature requests and basically everything!
π License
This project is licensed under the AGPL-3.0. This means that if you modify Sweep and run it as a service, you must publish your modifications under the same license.
See LICENSE for details.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found