Skip to main content

Methoryn

A multi-agent AI assistant that runs on your desktop.

Methoryn is a terminal app (TUI) built on a five-layer AI orchestration stack, one specialised agent per layer:

Layer Provider Role
L1 Groq Conversation & orchestration — plans tasks, coordinates the workflow
L2 Cloudflare Library manager — executes tool/library scripts, delegates to specialists
L3 Gemini Multimodal & research — images, PDF/image analysis, web research
L4 Mistral Coding agent — writes, edits, tests, and debugs code
L5 NVIDIA Quality control — reviews and verifies important outputs

You type one prompt; Groq turns it into a task plan, Cloudflare executes it with deterministic library scripts, and the specialist agents handle their lanes automatically. The interface is built with Textual.

Python License


Features

  • Five-layer agent stack — Groq plans, Cloudflare executes libraries, Gemini handles multimodal work, Mistral writes code, NVIDIA verifies
  • 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 /account, 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, /account, and more

Requirements

  • Python 3.13+
  • A Groq API keyrequired (free tier available)
  • A Cloudflare API key + account ID — required, powers Layer 2 library management
  • A Google AI Studio API keyrequired, powers Gemini (Layer 3)
  • A Mistral API keyrequired, powers the coding agent (Layer 4)
  • An NVIDIA NIM API key — optional, enables quality control (Layer 5)
  • 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 (Layers 1–4 are required — Groq, Cloudflare, Gemini, Mistral):

    • Groq — required: free tier 12K tokens/minute
    • Cloudflare — required: Layer 2 library management (API token + Account ID)
    • Google AI Studio — required: Gemini (Layer 3)
    • Mistral — required: coding agent (Layer 4)
    • NVIDIA NIM — optional: quality control (Layer 5)
  2. Launch and configure:

    Methoryn
    

    On first run, you'll see a setup screen. Enter the required keys (Groq, Cloudflare, Gemini, Mistral) 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. Layers 1–4 (Groq, Cloudflare, Gemini, Mistral) are required — the setup screen won't proceed without them. NVIDIA (Layer 5) is optional.

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 — run /account and edit the key fields directly.

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
/account Edit API keys and manage Google accounts 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 Create a new Google Doc No
/sheets Create a new Google Sheet No
/slides Create a Slides presentation No
/forms Create a Google Form No
/calendar Add a Calendar event No
/image Generate an image (Gemini) Yes
/python Write a Python script No
/run Run a shell command No
/write Write a file No
/md /txt /html /csv /word /pdf Write a file in that format No

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)
│   ├── cli.py               — `Methoryn` command entry point
│   ├── groq_agent.py        — Layer 1: Conversation & Orchestration (Groq)
│   ├── cloudflare_agent.py  — Layer 2: Library Manager (Cloudflare)
│   ├── gemini_agent.py      — Layer 3: Multimodal & Research (Gemini)
│   ├── mistral_agent.py     — Layer 4: Coding Agent (Mistral)
│   ├── nvidia_agent.py      — Layer 5: Quality Control (NVIDIA)
│   ├── inter_agent_protocol.py — Agent-to-agent protocol + TaskPlan
│   ├── task_plan.py         — TaskPlan parsing / delegation helpers
│   ├── 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
│   ├── setup_screen.py      — First-run API key setup
│   ├── taskbar.py           — Taskbar progress indicator
│   └── widgets.py           — MainBox, SideBar, SlashPalette, PromptEditor
├── 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
  • Optional keys (Cloudflare, Gemini, Mistral, NVIDIA) disable only their layer — a warning appears at startup; all other features work normally
  • sessions/ and outputs/ are local-only and excluded from git
  • Google accounts and tokens are stored at ~/.Methoryn/accounts.json and ~/.Methoryn/tokens/, 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.55-py3-none-any.whl (283.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: methoryn-0.1.55-py3-none-any.whl
  • Upload date:
  • Size: 283.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.55-py3-none-any.whl
Algorithm Hash digest
SHA256 24e5fc88265f7862d9142eeb243c29387fb1bfe2f9981336d06d71174718efb9
MD5 2d488b46e2b1f5d5f9c3e44b787ce61f
BLAKE2b-256 b85aa68ad8395a5addf7e794c0ca32ac9a6ba0abd3db5fd216d95fc8d7a90c1d

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