@ainative/cody-sdk has 1,750 recorded weekly downloads on npm, ranking #1650 of 2,762 tracked listings.
About @ainative/cody-sdk
Cody SDK for TypeScript
The official TypeScript SDK for AINative Studio's Cody platform. Supports all AINative models and Claude models through intelligent dual-provider routing.
Install
npm install @ainative/cody-sdk
Usage
import Anthropic from '@ainative/cody-sdk';
const client = new Anthropic();
// AINative models → routes to api.ainative.studio
const response = await client.messages.create({
model: 'qwen-coder-32b',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Hello from Cody!' }],
});
// Claude models → routes directly to Anthropic API
const claudeResponse = await client.messages.create({
model: 'claude-sonnet-4-5',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Hello from Claude!' }],
});
Supported Models
AINative Models (via api.ainative.studio)
| Model | Description |
|---|---|
qwen-coder-32b | Best code quality (default) |
qwen-coder-7b | Fast iteration, 3x faster |
nouscoder-14b | Balanced code model |
gemma-9b | General text and reasoning |
deepseek-r1-distill-qwen-7b | Step-by-step reasoning |
Claude Models (direct to Anthropic API)
| Model | Description |
|---|---|
claude-sonnet-4-5 | Best for everyday tasks |
claude-3-5-haiku | Fastest for quick answers |
claude-opus-4-6 | Most capable for complex work |
Environment Variables
# For AINative models
export AINATIVE_API_KEY=your-ainative-key
# For Claude models (optional)
export ANTHROPIC_API_KEY=your-anthropic-key
# Override base URL
export ANTHROPIC_BASE_URL=https://api.ainative.studio
Model Routing
The SDK automatically routes requests to the correct API:
- AINative models (qwen, gemma, deepseek, nouscoder) →
api.ainative.studio - Claude models (sonnet, haiku, opus) →
api.anthropic.com
Usage tracking is handled server-side by AINative's backend middleware.
API Compatibility
Fork of the Anthropic TypeScript SDK (MIT license). Fully compatible with the Anthropic Messages API. Also supports:
- Amazon Bedrock (
@ainative/cody-sdk/bedrock) - Google Vertex AI (
@ainative/cody-sdk/vertex) - Microsoft Foundry (
@ainative/cody-sdk/foundry)
Agents: Self-Provision Here
Point your agent here to programmatically self-provision AINative services:
https://ainative.studio/agent.md
DNS discovery: dig TXT _agents.ainative.studio
Community
- Discord: discord.gg/paipalooza
- Website: ainative.studio
- Support: support@ainative.studio
License
MIT
Description from the npm listing.
- cody
- cody-sdk
- ainative
- ai
- ai-sdk
- llm
- llm-sdk
- anthropic
- claude
- claude-sdk
- qwen
- qwen-coder
- deepseek
- gemma
- nouscoder
- chat-completions
- messages-api
- streaming
- sse
- tool-use
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (2)Similar npm AI SDKs plugins
All 20 @ainative/cody-sdk alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@ainative/cody-sdk. First seen Nov 1, 2026; last successful collection Nov 3, 2026. See the methodology.