Pranav GudiseCode on GitHub

odyssey-doctor

Static checks for apps built on the Odyssey API JavaScript and Python SDKs. It reads source files only: no API key, no network calls, nothing executed.

Every project has a finding

17 public projects using the SDK, scanned at pinned commits on 2026-11-19

9 checks
12 of 17public projects let browser code reach the API key

Most public apps on the SDK ship the key to the browser and never restart a stream at the 150-second limit. None handle the typed usage-limit errors.

4 of 17 add a server route that hands the raw key to the browser, which moves the leak instead of stopping it. Connection cleanup is mostly right: 11 of the 12 projects that connect from browser code release the connection.

Run it on a test fixture

Real output from python -m odyssey_doctor, captured from the repository's test fixtures. Flagged lines are marked in the source.

odyssey-doctor

  

Results on public projects

Run on 2026-11-19 with python corpus/run_corpus.py. Repositories were found with GitHub code search for the SDK import strings and are pinned to the commits in projects.csv. Repositories in the same group (copies of one project) count once: 20 repositories, 17 distinct projects. Results are aggregate only. OD002 (literal keys) is not reported for other people's public projects.

OD006Usage limits not handled17 of 17
OD001API key reachable from browser code12 of 17
OD003No restart when a stream hits the 150-second limit12 of 17
OD009Server route hands the raw API key to the browser4 of 17
OD005No cleanup on page exit or component unmount1 of 17
OD007Wrong Python package1 of 17
OD004Connection never released0 of 17
OD008Recovery path needs an API key the client does not have0 of 17
12 of 17

Streaming projects (call startStream or start_stream). The 12 OD003 hits are exactly those 12.

11 of 12

Projects that open a connection from browser code and release it when the page closes or the component unmounts (5 through the useOdyssey hook, 6 in their own code). The one OD005 hit only disconnects when the user switches modes.

9 of 17

Projects using Simulations.

5 of 17

Python SDK projects.

1 of 17

Projects using client credentials, and only to clean up old sessions.

Last commits across the corpus run from 2026-01-23 to 2026-11-05. One large repository (eyeoverthink/fraynix) is cloned sparsely to its Odyssey code, set by the paths column in projects.csv.

Checks

RuleWhat it flagsBased on
OD001API key used in browser code, or exposed through a public env prefix (NEXT_PUBLIC_, VITE_, REACT_APP_, EXPO_PUBLIC_)Client Credentials page
OD002A literal ody_ key committed in source (the value is never printed)Client Credentials page
OD003Streams started, but no restart when the stream ends with session_timeout at the 150-second limitStream Duration Limits page
OD004connect() with no disconnect() anywhere in the projectSession Management page
OD005disconnect() exists but no page-exit or unmount handler calls it on the Odyssey clientSession Management page
OD006None of the typed usage errors handled (MonthlyLimitReachedError, ConcurrentLimitReachedError, RateLimitError, StreamDurationExceededError, AccountSuspendedError)SDK source (throwIfUsageError)
OD007odyssey from PyPI as a dependency (an unrelated project); the SDK installs from git+https://github.com/odysseyml/odyssey-python.gitPython SDK install docs
OD008A client that joined with connectWithCredentials() calls connect() to recover, which requires an API key it does not haveSDK source (requireApiKey)
OD009A server route or function that returns the raw API key (in a JSON response or any returned object)Client Credentials page

The React useOdyssey hook disconnects on unmount, so projects using it pass OD004 and OD005.

Limits

These are pattern checks, not a type checker. They can miss a key passed through several variables, and they treat any session_timeout handling as a restart. Public code also over-represents hackathon projects, so the corpus counts describe public code, not Odyssey's customer base.