Get Started with OpenCase
Choose your deployment method and start building custom portfolios in minutes.
Recommended
Cloudflare (Recommended)
Deploy on Cloudflare's edge network for free. Global distribution, automatic scaling, zero maintenance.
- 1Fork the OpenCase repository on GitHub
- 2Create a Cloudflare account (free)
- 3Connect your GitHub repository to Cloudflare Pages
- 4Configure environment variables (API keys, encryption key)
- 5Deploy with one click
Privacy First
Docker Self-Hosted
Run OpenCase locally or on your own server with Docker. Complete control and privacy.
- 1Clone the OpenCase repository
- 2Copy .env.example to .env and configure
- 3Run docker-compose up -d
- 4Access OpenCase at localhost:8787
- 5Create your first admin account
For Developers
Local Development
Set up a local development environment to contribute or customize OpenCase.
- 1Clone the repository: git clone ...
- 2Install dependencies: npm install
- 3Copy wrangler.jsonc.example to wrangler.jsonc
- 4Run migrations: npm run db:migrate
- 5Start dev server: npm run dev
Quick Start Commands
Clone Repository
git clone https://github.com/marketcalls/opencase.gitInstall Dependencies
cd opencase && npm installApply Database Migrations
npm run db:migrate:localSeed Template Data
npm run db:seedBuild the Project
npm run buildStart Development Server
npm run devBroker API Setup
Z
Zerodha
- Create a Kite Connect app at kite.trade
- Note your API Key and API Secret
- Set redirect URL to your OpenCase instance
- Add credentials to environment variables
A
Angel One
- Register for Smart API at smartapi.angelone.in
- Get your API Key and Client ID
- Generate TOTP secret for authentication
- Add credentials to environment variables
Configuration (Optional)
OpenCase is zero-config by default. All settings can be optionally customized via the YAML configuration file.
opencase.config.yaml
# Token cleanup settings
tokenCleanup:
enabled: true
time: "03:00"
timezone: "Asia/Kolkata"
# Session settings
session:
expiryDays: 7
# Broker token settings
brokerToken:
tokenExpiryHours: 8
First Steps After Setup
1
Create Admin Account
First user automatically becomes admin
2
Connect Broker
Add your Zerodha or Angel One account
3
Download Instruments
Sync master instrument database
4
Create First Basket
Start with a template or build your own
Ready to Start Investing?
Join the open-source portfolio management revolution. Full control, no fees.