New operator
Scope and Model → Quickstart Flow → Walkthrough
Use this path to validate end-to-end setup before deep tuning.
Powerhour Docs
This documentation is written for self-hosted operators. Route references describe in-app paths in your own deployment (for example /transactions), not a hosted web app endpoint.
Domain separation is explicit:
New operator
Scope and Model → Quickstart Flow → Walkthrough
Use this path to validate end-to-end setup before deep tuning.
Security reviewer
Security Model → Operations and Runtime → FAQ
Use this path to inspect controls, boundaries, and practical caveats.
Engineer contributor
Core Modules → API Domains → Implementation Map
Use this path to map features to code ownership quickly.
Quick orientation for non-engineering readers, with direct route context for operators and developers.
Daily financial posture with net worth, balances, category movement, and credit utilization in one command surface.
/, /accounts, /accounts/[id]
Ask direct financial questions, compare trend windows, audit recurring costs, and trigger report generation flows.
/ (embedded), floating chat on dashboard routes
Mode-driven planning for travel, savings targets, and spend reduction with persisted conversations.
/budget-planner, /projections
Search and filter transaction history, then organize records into groups for trip/project analysis.
/transactions, /transactions/groups, /transactions/groups/[id]
Detect recurring items, flag inactive subscriptions, estimate monthly/annual risk, and deactivate noise quickly.
/subscriptions, /projections
Encrypted tokens, restricted agent views, verified webhooks, and audit events for critical operations.
/settings, /api/webhooks/plaid, /api/audit-log
/login./settings./settings./, /accounts./transactions, /subscriptions, /projections.| Module | In-app routes | Purpose |
|---|---|---|
| Dashboard and analytics | /, /accounts, /accounts/[id] | Consolidated financial posture: KPI cards, net worth, account views, balance history, and trend visualizations. |
| Transactions and grouping | /transactions, /transactions/groups, /transactions/groups/[id] | Search, filters, pagination, group assignment, and suggestion workflows for transaction-level analysis. |
| Projections and recurring | /projections, /subscriptions | Recurring detection, shortfall forecasting, subscription audit, and savings trajectory views. |
| Budgeting and planning | /budgets, /budget-planner | AI-generated budget goals plus mode-based planner workflows for travel, savings, and spend reduction. |
| Settings and control plane | /settings | Scheduler toggles, institution management, sync controls, password changes, audit events, and configured AI models. Local-model support is in beta. |
/api/auth/login, /api/auth/logout, /api/auth/me, /api/auth/change-password
/api/dashboard/summary, /api/dashboard/*-history, /api/dashboard/spending-trends, /api/dashboard/category-trends, /api/dashboard/channel-trends, /api/dashboard/credit-utilization
/api/accounts, /api/accounts/[id], /api/transactions, /api/transactions/summary, /api/transactions/daily, /api/transactions/merchants
/api/budget-goals, /api/budget-goals/generate, /api/budget-plans, /api/projections, /api/recurring, /api/savings-targets, /api/subscriptions
/api/ai/chat, /api/ai/budget-planner, /api/ai/report, /api/ai/status
/api/plaid/link-token, /api/plaid/exchange-token, /api/plaid/institutions, /api/sync, /api/webhooks/plaid
AI workflows default to Gemini 2.5 Flash-Lite (gemini-2.5-flash-lite). Local-model support (Beta) covers Ticker, Budget Planner, PDF summaries, smart budget goals, and weekly digests through an OpenAI-compatible server such as Ollama, llama.cpp, or LM Studio.
Set AI_PROVIDER=openai-compatible, AI_BASE_URL to the server's endpoint ending in /v1, and AI_MODEL to a loaded model. A Gemini key is not needed for this provider. Optional overrides use AI_MODEL_CHAT, AI_MODEL_PLANNER, AI_MODEL_REPORT, AI_MODEL_GOALS, and AI_MODEL_DIGEST. Settings → AI models shows the configured models. During beta, tool support, response time, and output quality vary by model.
For Docker deployments, the model endpoint must be reachable from the app container. With Ollama on the host, use http://host.docker.internal:11434/v1. Run Ollama natively on macOS for GPU access and configure a context window of at least 16,384 tokens for the agent tools.
instrumentation.ts.lib/scheduler.ts.scripts/setup.cjs.docker/* (source build) and deploy/docker-compose.yml (versioned release image, with a separate migrate service gated behind the tools profile)./api/health and /api/settings/scheduler.| Area | Primary files |
|---|---|
| Runtime and routing | app/layout.tsx, app/(dashboard)/layout.tsx, middleware.ts, instrumentation.ts |
| Pages | app/(auth)/login/page.tsx and app/(dashboard)/*/page.tsx |
| API routes | app/api/**/route.ts |
| UI composition | components/dashboard/*, components/chat/*, components/budget-planner/*, components/charts/* |
| State and hooks | hooks/use-dashboard.ts, hooks/use-transactions.ts, hooks/use-accounts.ts, hooks/use-expense-groups.ts |
| AI and tools | lib/ai/model.ts, lib/ai/features.ts, lib/agent/agent.ts, lib/agent/budget-planner-agent.ts, lib/agent/tools/* |
| Domain logic | lib/projections.ts, lib/recurring.ts, lib/savings-projections.ts, lib/savings-targets.ts |
| Data model | lib/db/schema.ts, lib/db/views.ts, lib/db/migrations/* |
| Infra and deploy | docker/Dockerfile, docker/docker-compose.yml (source build + optional tls profile), deploy/docker-compose.yml (release image + migrate/tools profile), docker/nginx/nginx.conf, scripts/setup.cjs, scripts/migrate.mjs |