Before you start
- A Zerodha trading account
- A redirect URL (http://127.0.0.1 works for scripts)
Create your Zerodha Kite Connect API key
- 1
Sign up
Create an account at developers.kite.trade.
- 2
Create an app
Create a Personal or Connect app, enter your Zerodha client id and a redirect URL.
- 3
Copy the keys
Save
KITE_API_KEYandKITE_API_SECRET. - 4
Generate today’s token
Run the login flow each morning and store
KITE_ACCESS_TOKEN.
Test the key
Before wiring the key into a strategy, make one request by hand. It separates “the key is wrong” from “my code is wrong”.
curl -s https://api.kite.trade/user/profile -H "X-Kite-Version: 3" -H "Authorization: token $KITE_API_KEY:$KITE_ACCESS_TOKEN"Keep the credentials safe
- Store values in a password manager or a git-ignored
.env, never in code or notebooks you share. - In an AlgoGP project you can still add them under APIs & keys (encrypted at rest) and read them with
strategy_runtime.secrets.get("KITE_API_KEY"). - Give each bot its own credential so you can revoke one without stopping the others.
KITE_API_KEY=paste-your-value-here
KITE_API_SECRET=paste-your-value-here
# KITE_ACCESS_TOKEN=Design and backtest your Zerodha Kite Connect strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to Zerodha Kite Connect. The exported code keeps the broker behind four small adapter methods.
- AI copilot writes and revises the rules
- Backtests with realistic costs
- Exported Python ready to wire to Zerodha Kite Connect
Free plan, no card required.
How the Zerodha Kite Connect API works
AlgoGP is not affiliated with Zerodha Kite Connect. Menus get renamed from time to time; if a label differs, the official documentation has the current path.