Settings

Configure your API keys, editor, appearance, and preferences.

General

Language, landing page, and confirmation preferences.

Language
Choose your preferred language for the app interface.

More languages coming soon.

Default Landing Page
Choose where to land when you open Pytrix.
Confirmations
Control when Pytrix asks for confirmation before destructive actions.

Appearance

Theme, accent color, fonts, and visual options.

Theme
Choose your preferred color scheme.
Accent Color
Customize the highlight color for badges and buttons.
Sidebar Density
Adjust the spacing of sidebar items.
Card Shadows
Toggle subtle shadows on cards for depth.
Fonts
Customize the fonts used in the interface and code editor.

Editor

Code editor behavior, theme, and shortcuts.

Editor Basics
Configure the code editing experience.
Editor Theme
Choose a color theme for the code editor.
Behavior
Control how the editor behaves during practice.

Display the Pyodide Python version in the status bar.

When disabled, you must click the "Run & Check" button.

Practice & Defaults

Session defaults, Auto Mode, and stats behavior.

Session Defaults
Set your preferred starting mode and difficulty.
Auto Mode
Configure how Auto Mode selects and buffers questions.

Automatically adjust difficulty based on performance.

2

Higher values reduce loading times but use more API calls.

Manual Practice
Configure Manual Practice behavior.

Automatically load a new question when you solve one correctly.

Stats Behavior
Control how stats are calculated and displayed.

Count failed attempts when calculating mastery percentage.

Display breakdown by Beginner/Intermediate/Advanced on topic cards.

Key Bindings

Keyboard shortcuts reference.

Keyboard Shortcuts
Quick reference for all available keyboard shortcuts.
Open Command Palette
K
Toggle Sidebar
B
Run & Check Code
Enter
Save Code
S
Next Question
N
Regenerate Question
R

Reserved browser shortcuts (⌘R, ⌘W, ⌘T) cannot be overridden.

API & Keys

Configure your AI provider API keys.

AI Provider
Configure your API key for AI-powered features.

Google Gemini API

Primary AI provider for all features

Not Configured

More Providers

OpenAI, Claude, and more coming soon

Coming Soon
API Key
Enter your Gemini API key from Google AI Studio.
Security & Usage Tips

Your key stays local. Stored only in your browser's localStorage.

Rate limits apply. Free tier has ~1500 calls/day for flash-lite.

Never share your key. Anyone with it can use your quota.

Learn more about rate limits

Privacy & Data

Data storage, privacy options, and clear data.

Data Storage
Understanding where your data lives.

Stats & Mastery

Your attempt counts, solve rates, and mastery scores are stored in localStorage.

History

A log of every question, your code, and the result. Also in localStorage.

Privacy Options
Control what data is tracked.

When off, only aggregate stats are kept (no individual attempts).

Help improve Pytrix with anonymized usage data (not implemented).

Clear Data
Permanently delete your stored data. These actions cannot be undone.

Clear Stats Only

Remove all attempt counts and mastery data.

Clear History Only

Remove all past questions and code snapshots.

Clear All Local Data

Remove stats, history, Auto Mode runs, and API key.

Advanced

Safety limits, debug options, and reset settings.

API Usage Caps
Client-side safety limits to help you stay within free tier quotas.
50

Limits total AI calls per browser session. Prevents runaway usage.

10

Limits "Reveal Solution" and "Optimize" calls. These use more tokens.

Developer Options
Tools for debugging and experimentation.

Display request metadata in console (never shows API key).

Access beta features that may be unstable.

Reset Settings
Restore all settings to their original values.

Reset All Settings to Defaults

This will not clear your stats, history, or API key.

Command Palette

Search for a command to run...