Skip to main content
Freesona is a BYOK (Bring Your Own Key) Discord bot you fork, configure, and run on your own hardware or cloud account. Drop in your own API key and you get a fully functional bot that behaves exactly the way you configure it. No paying for credits, no rate limits set by someone else, and no lock-in to a single AI vendor’s personality. No credits. No voting. No “upgrade to unlock.” Everything runs on your infrastructure, under your control.

What Freesona Can Do

Freesona ships as a ready-to-run Python application built on discord.py. It organizes its capabilities into loadable modules you can enable or disable without touching a line of code:
  • AI persona system/setpersona opens a structured, button-based editor for persona fields. Changes apply immediately with no restart required. Save and load named presets with /personasave and /personaload.
  • Multi-provider AI — a shared provider abstraction lets you swap providers without changing any command logic. Switch live with /provider set and /model set.
  • Long-term user memory — Freesona extracts facts about each user from conversation, scores them by importance, and persists them across restarts. Memory stays isolated per user per server, so conversations never bleed between guilds.
  • Autonomy mode — the bot can respond on its own using a confidence-scored intent evaluator, not random chance. Per-channel cooldowns prevent it from dominating a conversation.
  • Knowledge base — when ChromaDB is enabled, Freesona retrieves relevant document chunks semantically and injects them into generation context. Manage entries with /kbadd, /kblist, /kbdelete, and /kbsearch.
  • Media tools — download audio and video with yt-dlp, separate audio stems via MVSEP, and process images, PDFs, audio, and code files through the active provider’s multimodal pipeline.
  • Moderation suite — a full warning system with hex IDs, auto-threshold actions, and DM notifications. Module-level on/off controls let you enable only what your server needs.

Quickstart

Clone the repo, fill in your .env, and have the bot running in under five minutes.

Configuration

Every .env variable and every runtime /config key, explained.

Persona System

Build a convincing AI persona with structured fields and instant live updates.

AI Providers

Gemini, OpenAI, Ollama, NVIDIA NIM, Azure AI Foundry, Groq, and OpenRouter.

Command Reference

Complete listing of every prefix and slash command the bot ships with.

Moderation

Warning system, auto-threshold actions, and per-guild moderation controls.

How Freesona Differs from Hosted Bots

Platforms like MEE6 or hosted persona bots give you a product someone else built on infrastructure you don’t control with a ceiling you’ll eventually hit. Freesona inverts that model:
FreesonaHosted bots
CostOnly your AI provider costsSubscription or per-message credits
AI providerYour choice, swappable at runtimeLocked to vendor
DataStays on your host, but is also sent to whichever AI provider you configureProcessed on third-party servers
FeaturesAll modules enabled by defaultGated behind upgrades
CustomizationFull source access via forkConfig options only

Supported AI Providers

Freesona’s generation pipeline routes through a common provider abstraction. Set AI_PROVIDER in your .env to activate one:
ProviderAI_PROVIDER valueNotes
Google GeminigeminiDefault provider; set GOOGLE_API_KEY
NVIDIA NIMnimSet NVIDIA_API_KEY and NVIDIA_NIM_BASE_URL
OllamaollamaLocal inference; defaults to http://localhost:11434/api/chat
OpenAIopenaiAlso set OPENAI_BASE_URL
Azure AI FoundryazureSet AZURE_AI_KEY and your Foundry endpoint in AZURE_AI_BASE_URL
GroqgroqSet GROQ_API_KEY
OpenRouteropenrouterSet OPENROUTER_API_KEY
You can switch the active provider at runtime without restarting: /provider set <name>.

Command System

Freesona uses a hybrid command system — every command is available as both a prefix command (default prefix ~) and a slash command. For example, ~ping and /ping do exactly the same thing. You can change the prefix at any time with ~prefix <new_prefix> (requires Administrator). Core commands like /ping, /status, and /help are always loaded. Everything else — AI generation, media tools, moderation, knowledge base — lives in optional modules you control with /module enable and /module disable.

Ready to Set Up Your Bot?

Get Started: Quickstart →

Clone Freesona, configure your Discord bot token and AI provider key, and have your self-hosted bot running in under five minutes.