Skip to main content

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.

Python License


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 .env editing 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 keyrequired (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), not methoryn
  • Both Methoryn and methoryn work 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 list or pip list | grep -i methoryn to 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

  1. Get API keys (at minimum, Groq is required):

  2. Launch and configure:

    Methoryn
    

    On first run, you'll see a setup screen. Add your Groq API key and optionally sign in with Google.

  3. Try your first prompt:

    Methoryn "write a Python script that lists files by size"
    

API Keys

Methoryn supports five providers, one per agent layer. Only Groq is strictly required for basic operation, but the full multi-layer architecture needs the others.

Key Provider Layer Used for
GROQ_API_KEY Groq 1 Conversation & orchestration (required)
CloudFlare_API_KEY + CLOUDFLARE_ACCOUNT_ID Cloudflare 2 Library management (task-plan execution)
GOOGLE_API_KEY Google AI Studio 3 Multimodal & research (Gemini)
MISTRAL_API_KEY Mistral 4 Coding agent
NVDA_API_KEY NVIDIA NIM 5 Quality control & review

GOOGLE_ACCOUNT_EMAIL is also read from .env to enable Google Workspace OAuth (Gmail/Drive/Docs/Sheets/Calendar).

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_KEY is optional — if absent, Gemini sub-agents are disabled and a warning appears at startup; all other features work normally
  • sessions/ and outputs/ 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

methoryn-0.1.43-py3-none-any.whl (127.2 kB view details)

Uploaded Python 3

File details

Details for the file methoryn-0.1.43-py3-none-any.whl.

File metadata

  • Download URL: methoryn-0.1.43-py3-none-any.whl
  • Upload date:
  • Size: 127.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for methoryn-0.1.43-py3-none-any.whl
Algorithm Hash digest
SHA256 02d9b17e9b26c749591d5b39ad46ee00bcf0a55586b3ed45bc4191a278e6f135
MD5 d840a9e2cc8e434fc892f3098d721dba
BLAKE2b-256 e6e4cae27b02a96c95fe5339f0064672df38b32aa0d3eb64c6ea721e221a319f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page