Checklist
Describe the Problem
The JS SDK uses different environment variable names than the Python SDK and LiteLLM:
| What it means |
Python SDK / LiteLLM |
JS SDK |
| Base service URL |
AICORE_BASE_URL |
AICORE_SERVICE_URL |
| Auth/token URL |
AICORE_AUTH_URL |
AICORE_TOKEN_URL |
Additionally, the JS SDK does not support loading credentials from ~/.aicore/config.json,
which is the standard credential store created by aicore configure and used by the Python SDK.
This means developers using both SDKs in the same project must maintain two separate credential
configurations (locally or in application) — even though they point to the same AI Core instance.
Propose a Solution
- Support
~/.aicore/config.json as a fallback credential source.
- Accept
AICORE_BASE_URL as an alias for AICORE_SERVICE_URL, and AICORE_AUTH_URL as an
alias for AICORE_TOKEN_URL.
Desired credential resolution order:
AICORE_SERVICE_KEY (existing)
VCAP_SERVICES binding (existing)
AICORE_SERVICE_URL / AICORE_BASE_URL + AICORE_CLIENT_ID + AICORE_CLIENT_SECRET
AICORE_TOKEN_URL / AICORE_AUTH_URL env vars
~/.aicore/config.json
Describe Alternatives
No response
Affected Development Phase
Development
Impact
Inconvenience
Timeline
No response
Additional Context
This matters most for multi-language projects and agent skill frameworks where a single
aicore configure step is expected to work for all runtimes. Currently the JS SDK requires a
separate setup step, breaking that assumption.
example friction from the user.
Checklist
Describe the Problem
The JS SDK uses different environment variable names than the Python SDK and LiteLLM:
AICORE_BASE_URLAICORE_SERVICE_URLAICORE_AUTH_URLAICORE_TOKEN_URLAdditionally, the JS SDK does not support loading credentials from
~/.aicore/config.json,which is the standard credential store created by
aicore configureand used by the Python SDK.This means developers using both SDKs in the same project must maintain two separate credential
configurations (locally or in application) — even though they point to the same AI Core instance.
Propose a Solution
~/.aicore/config.jsonas a fallback credential source.AICORE_BASE_URLas an alias forAICORE_SERVICE_URL, andAICORE_AUTH_URLas analias for
AICORE_TOKEN_URL.Desired credential resolution order:
AICORE_SERVICE_KEY(existing)VCAP_SERVICESbinding (existing)AICORE_SERVICE_URL/AICORE_BASE_URL+AICORE_CLIENT_ID+AICORE_CLIENT_SECRETAICORE_TOKEN_URL/AICORE_AUTH_URLenv vars~/.aicore/config.jsonDescribe Alternatives
No response
Affected Development Phase
Development
Impact
Inconvenience
Timeline
No response
Additional Context
This matters most for multi-language projects and agent skill frameworks where a single
aicore configurestep is expected to work for all runtimes. Currently the JS SDK requires aseparate setup step, breaking that assumption.
example friction from the user.