offrouter-mistral-codestral
v0.34.1
Published
[](https://www.npmjs.com/package/offrouter-mistral-codestral) [](https://www.npmjs.com/package/offrouter-mis
Readme
offrouter-mistral-codestral
Mistral Codestral provider package for OffRouter.
Install
npm install offrouter-mistral-codestralUsage
Use Node.js 22 or later. Export the activation variables before running this example.
The package does not load .env files.
import { createMistralCodestralAdapter } from "offrouter-mistral-codestral";
const adapter = createMistralCodestralAdapter({
apiKey: process.env.CODESTRAL_API_KEY,
fetch: globalThis.fetch,
});
console.log(adapter.id);
console.log((await adapter.checkAuth()).configured);Provider activation names: CODESTRAL_API_KEY.
The package uses the HTTP transport from offrouter-core.
Apply routing policy through OffRouter before invoking a provider directly.
Expected output: mistral-codestral, then true when credentials are present.
This checks configuration only; it does not validate credentials with the provider.
Features
- Named factory and
createAdapteralias for providermistral-codestral. - Model discovery and invocation through the shared HTTP adapter.
- Injectable fetch and base URL overrides for controlled integrations.
Live calls need injected fetch or OFFROUTER_LIVE_TESTS=1.
Links
Package scope
This is a provider library, not a standalone command.
Install offrouter separately for the parent CLI and policy configuration.
License
MIT.
