Install Node.js
node --version in your terminal to check — you should see a version number like v22.x.x.- Windows
- macOS
- Go to nodejs.org
- Click the big green LTS button to download the installer
- Open the downloaded
.msifile - Click Next through all the screens — the default settings are fine
- Click Install, then Finish
How do I know it worked?
How do I know it worked?
v22.x.x. If you see an error, try closing and reopening your terminal, then run the command again.Install Gemini CLI
gemini in your terminal to check it still works.- Choose “Sign in with Google”
- A browser window will open — sign in with your Google account
- Come back to the terminal when it says you’re connected
'npm' is not recognised
'npm' is not recognised
Permission denied error
Permission denied error
sudo before the command:/quit to exit Gemini CLI for now. We will start it again once everything else is set up.Register for the Auckland Transport API
- Go to dev-portal.at.govt.nz
- Click Sign Up (or Register) in the top-right corner
- Fill in your name, email, and create a password
- Check your email for a verification link and click it
- Sign in to the developer portal
- Once signed in, look for a Profile or Subscriptions page
- You may need to subscribe to a product — look for “GTFS Realtime” or “General Transit Feed” and subscribe (it’s free)
- Find your Primary Key (also called Subscription Key) — it will be a long string of letters and numbers
- Copy this key and save it somewhere safe — you will need it in the next section
I can't find my subscription key
I can't find my subscription key
Do I need to subscribe to a specific product?
Do I need to subscribe to a specific product?
Get your API subscription key
- Go to your Profile page on the AT developer portal
- Find your Primary Key (or Subscription Key)
- Click Show to reveal the full key
- Copy it and save it somewhere you can easily access — a text file, a note, or your password manager
Install Wispr Flow (optional)
- Sign up at wisprflow.ai/r?CHAN115
- Download and install the app for your operating system
- Configure settings — enable these options for the best experience:
- Experimental > Command Mode — Enable advanced voice commands
- Press Enter Command — Automatically press enter when you say “press enter”
- Bulk Import — Import snippets and dictionary items
What is Wispr Flow?
What is Wispr Flow?
Test your setup
YOUR_API_KEY with the subscription key you saved earlier.Gemini says 'access denied' or '401 error'
Gemini says 'access denied' or '401 error'
Gemini says 'rate limit exceeded'
Gemini says 'rate limit exceeded'
Gemini returns garbled data or strange characters
Gemini returns garbled data or strange characters
Gemini says it can't access the URL
Gemini says it can't access the URL
subscription-key=YOUR_API_KEY has your actual key with no spaces around the = sign. Also try asking Gemini to use curl to fetch the URL instead.Verify your setup
Node.js installed
Node.js installed
node --version in your terminal. You should see a version number.Gemini CLI installed and signed in
Gemini CLI installed and signed in
gemini in your terminal. It starts up and shows a prompt where you can type.AT API key saved
AT API key saved
API key tested
API key tested
Wispr Flow installed (optional)
Wispr Flow installed (optional)