Methoryn
A multi-agent AI assistant that runs on your desktop.
Methoryn is a terminal app (TUI) powered by Groq and Gemini. Groq handles your primary tasks with tool execution and streaming output. Gemini handles parallel sub-tasks in the background. The interface is built with Textual.
Features
- Multi-agent execution — Groq runs your task while Gemini sub-agents handle parallel work
- Tool use — reads/writes files, runs shell commands, searches the web
- Google Workspace — Gmail, Drive, Docs, Sheets, Slides, Forms, Calendar (optional OAuth sign-in)
- Bring Your Own Key (BYOK) — set API keys inside the app with
/keys set, no.envediting required - Session memory — conversation context carries over between sessions automatically
- File export — save output as
.txt,.md,.html,.csv,.docx, or.pdf - Slash commands —
/help,/gmail,/drive,/save,/copy,/sign-in, and more
Requirements
- Python 3.13+
- A Groq API key — required (free tier available)
- A Google AI Studio API key — optional, enables Gemini sub-agents
- A Google Cloud OAuth2
credentials.json— optional, enables Gmail / Drive / Docs / Calendar
Installation
Requirements: Python 3.13+ is required. Older versions will not work.
Quick Install (Recommended)
For the most reliable installation experience, use uv:
# Install uv (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install Methoryn with Python 3.13 in an isolated environment
uv tool install methoryn --python 3.13
# Launch (note the capital M)
Methoryn
Traditional Install
If you already have Python 3.13+:
pip install Methoryn
Methoryn
Installation Troubleshooting
Command not found: methoryn
- The command is
Methoryn(capital M), notmethoryn - Both
Methorynandmethorynwork as of v0.1.39+
"No matching distribution found"
- You need Python 3.13+. Check with
python --version - On macOS: System Python is too old. Install via Homebrew:
brew install python@3.13 - On older Ubuntu: Add deadsnakes PPA:
sudo add-apt-repository ppa:deadsnakes/ppa && sudo apt install python3.13
"Methoryn --help" hangs
- This is normal behavior in versions before 0.1.40
- Methoryn launches a TUI immediately, not a traditional CLI
- Use
uv tool listorpip list | grep -i methorynto verify installation
macOS: "Developer cannot be verified"
- Go to System Settings → Privacy & Security → Allow Anyway (one-time)
Multiple Python versions on Windows
- Use Python Launcher:
py -3.13 -m pip install Methoryn - Then run with:
py -3.13 -m Methoryn
Getting Started
-
Get API keys (at minimum, Groq is required):
- Groq — free tier: 12K tokens/minute
- Google AI Studio — optional: enables Gemini sub-agents
-
Launch and configure:
Methoryn
On first run, you'll see a setup screen. Add your Groq API key and optionally sign in with Google.
-
Try your first prompt:
Methoryn "write a Python script that lists files by size"
API Keys
Methoryn supports several providers. Only Groq is required — everything else is optional.
| Key | Provider | Used for | Free tier |
|---|---|---|---|
GROQ_API_KEY |
Groq | Main agent (required) | 12K TPM |
GOOGLE_API_KEY |
Google AI Studio | Gemini sub-agents | 1M TPM |
MISTRAL_API_KEY |
Mistral | Chat primary | ~1B tokens/month |
NVDA_API_KEY |
NVIDIA NIM | Chat backup | 40 RPM |
freeinference_API_KEY |
FreeInference | Research agent | Free (Harvard) |
OPENROUTER_API_KEY |
OpenRouter | Sub-agent backup | 50 req/day |
CloudFlare_API_KEY |
Cloudflare | Sub-agent + deploy | Free tier |
pollinations.ai_API_KEY |
Pollinations.ai | Image generation (/image) |
Free tier |
You can set any key inside the app without touching .env:
/keys set GROQ_API_KEY your_key_here
/keys list
/keys remove GROQ_API_KEY
Keys set this way are stored in ~/.Methoryn/byok.json on your local machine and override .env values.
Slash Commands
Type / in the prompt bar to open the command palette.
| Command | What it does | Uses AI? |
|---|---|---|
/help |
Show what Methoryn can do | No |
/keys |
Manage API keys (set / remove / list) | No |
/sign-in |
Connect your Google account | No |
/sign-out |
Disconnect Google | No |
/drive |
List Google Drive files | No |
/gmail |
Show recent Gmail inbox | No |
/copy |
Copy all output to clipboard | No |
/save |
Save session to disk | No |
/docs |
Start a Google Doc prompt | Yes |
/sheets |
Start a Google Sheet prompt | Yes |
/slides |
Start a Slides presentation prompt | Yes |
/forms |
Start a Google Form prompt | Yes |
/calendar |
Add a Calendar event | Yes |
/image |
Generate an image | Yes |
/python |
Write a Python script | Yes |
/run |
Run a shell command | Yes |
/write |
Write a file | Yes |
/md /txt /html /csv /word /pdf |
Export output in that format | Yes |
Keybindings
| Key | Action |
|---|---|
Enter |
Send prompt |
Tab |
Accept slash command suggestion |
Ctrl+S |
Save session |
Ctrl+Y |
Copy all output to clipboard |
Ctrl+C |
Quit |
Project Structure
Methoryn/
├── Methoryn/
│ ├── app.py — Textual UI (layout, input, slash commands)
│ ├── groq_agent.py — Main agent (Groq + tool execution)
│ ├── gemini_agent.py — Sub-agent pool (Gemini + fallbacks)
│ ├── chat_agent.py — Fast chat responses (Mistral / NVIDIA)
│ ├── code_review_agent.py — Code execution and self-fix
│ ├── state.py — Shared app state (single source of truth)
│ ├── config.py — API key loading (.env + BYOK)
│ ├── byok.py — Bring Your Own Key persistence (~/.Methoryn/byok.json)
│ ├── output.py — Session save/load (sessions/ folder)
│ ├── file_output.py — Local file export (.txt .md .html .csv .docx .pdf)
│ ├── google_auth.py — Google OAuth2 flow (token cached at ~/.Methoryn/)
│ ├── intro.py — Splash animation
│ └── cli.py — `Methoryn` command entry point
├── tests/ — Pytest test suite
├── .env.example — Key names with blank values (safe to commit)
├── pyproject.toml — Package metadata and dependencies
└── requirements.txt — Flat dependency list
Running Tests
pip install pytest
pytest
Requires GROQ_API_KEY to be set.
Notes
- Sessions are auto-saved on quit and auto-loaded on next launch so context carries over
GOOGLE_API_KEYis optional — if absent, Gemini sub-agents are disabled and a warning appears at startup; all other features work normallysessions/andoutputs/are local-only and excluded from git- Google tokens are stored at
~/.Methoryn/google_token.json, outside the project directory - BYOK keys are stored at
~/.Methoryn/byok.json— local to the machine, never synced
License
MIT © 2026 Methoryn
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 methoryn-0.1.41-py3-none-any.whl.
File metadata
- Download URL: methoryn-0.1.41-py3-none-any.whl
- Upload date:
- Size: 115.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4936092c781554ec91ba74aaf29fc088ceb85e0815d270dfc2f3268bbc4d8354
|
|
| MD5 |
2b096ff883d5ddd4c2aebf5c63dfc16a
|
|
| BLAKE2b-256 |
a496b2b53df09ca45f760421e8009b97d986f396f4d5e096987929e66d3f348f
|