frappe-console

frappe-console is a command for Claude Code from Venkateshvenki404224/frappe-apps-manager. It costs 12 tokens per session (2,262 once invoked), scanned A, original, MIT.

An interactive Python console for Frappe, a Python web framework used to build business applications. It loads Frappe's application and database context so you can inspect or run code for a selected site.

In plain words
What is it for?
Use it for database queries, Python one-liners, scripts, and interactive troubleshooting in a Frappe bench environment.
Why use it?
It gives developers a direct way to investigate data and debug a Frappe site without writing a separate application.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the frappe-apps-manager plugin — 16 skills, 16 commands, 3 hooks shipped together

Good fit Use it for database queries, Python one-liners, scripts, and interactive troubleshooting in a Frappe bench environment.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/venkateshvenki404224/frappe-apps-manager/frappe-console
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Venkateshvenki404224/frappe-apps-manager

Made for: Claude Code.

Or install frappe-apps-manager, the plugin that ships this one along with the rest of its 16 skills, 16 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frappe-console

README.md
[![agentmods](https://agentmods.dev/badge/commands/venkateshvenki404224/frappe-apps-manager/frappe-console/github.svg)](https://agentmods.dev/commands/venkateshvenki404224/frappe-apps-manager/frappe-console)
Your own site
<a href="https://agentmods.dev/commands/venkateshvenki404224/frappe-apps-manager/frappe-console"><img src="https://agentmods.dev/badge/commands/venkateshvenki404224/frappe-apps-manager/frappe-console/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frappe-console

Your own site · 80×15
<a href="https://agentmods.dev/commands/venkateshvenki404224/frappe-apps-manager/frappe-console"><img src="https://agentmods.dev/badge/commands/venkateshvenki404224/frappe-apps-manager/frappe-console.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,262 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.02262
Opus 5 $0.00006 $0.01131
Sonnet 5 $0.00002 $0.00452
Haiku 4.5 $0.00001 $0.00226

Measured 11d ago against content hash 2e38ea2c3964, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

frappe-console scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

frappe-apps-manager/commands/frappe-console.md · 425 lines

How it starts

The opening of the file, as written. The whole thing — 425 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frappe Console Command

Launch an interactive Python console with Frappe context loaded for debugging, data exploration, and executing Python commands.

Steps to Execute

1. Verify Bench Environment

  • Check if current directory is a valid Frappe bench
  • Verify bench command is available
  • List available sites

2. Select Site

Ask user which site to use:

  • List all sites in sites/ directory
  • Show default site (if set with bench use)
  • Get user selection or use default

3. Console Type Selection

Offer console options:

A. Standard Console (IPython)

  • Full Python REPL with Frappe context
  • Auto-completion and syntax highlighting
  • Command history

B. One-liner Execution

  • Execute single Python command
  • Get result and exit
  • Useful for scripts and automation

C. Script Execution

  • Execute Python script file
  • Run with Frappe context
  • Show output

4. Launch Console

Standard Console:

bench --site [site-name] console

One-liner:

bench --site [site-name] console --execute "print(frappe.db.get_all('Customer', limit=5))"

Script File:

bench --site [site-name] console < script.py

5. Provide Console Snippets

Show common console commands for user reference:

Get Document:

# Fetch a document
doc = frappe.get_doc('Customer', 'CUST-001')
print(doc.as_dict())

Query Database:

# Get all records with filters
customers = frappe.get_all('Customer',
    filters={'customer_group': 'Commercial'},
    fields=['name', 'customer_name'],
    limit=10
)
print(customers)

Execute Queries:

# Raw SQL
result = frappe.db.sql("""
    SELECT name, customer_name
    FROM `tabCustomer`
    WHERE creation > '2025-01-01'
    LIMIT 10
""", as_dict=True)

Create Documents:

# Create new document
customer = frappe.get_doc({
    'doctype': 'Customer',
    'customer_name': 'Test Customer',
    'customer_group': 'Commercial'
})
customer.insert()
frappe.db.commit()

Read the full file on GitHub · 425 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 425 lines · 12 tokens per session scan A 2e38ea2c3964

Subscribe to this mod's changes

frappe-console is a command published in the GitHub repository Venkateshvenki404224/frappe-apps-manager (27 stars, last pushed 3mo ago), licensed MIT. It adds 12 tokens to every session and 2,262 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.