Staxly

Cody vs Portkey

AI coding assistant by Sourcegraph — code graph + enterprise codebase context
vs. Enterprise AI gateway + observability + guardrails + prompt mgmt

Cody by SourcegraphPortkey website

Pricing tiers

Cody

Cody Free
$0. 500 autocompletes + 20 chat messages/mo. Claude Sonnet + GPT-4o-mini.
Free
Cody Pro
$9/user/mo. Unlimited autocomplete, unlimited chat, premium LLMs (Claude Opus, GPT-5).
$9/mo
Enterprise Starter
$19/user/mo. Adds advanced context (code graph), SSO, centralized billing.
$19/mo
Enterprise
$59/user/mo. On-prem deploy option, full Sourcegraph platform, audit logs, SLA.
$59/mo
Cody by Sourcegraph

Portkey

Developer (Free)
Free forever. 10k logs/month. Universal API + key management. 3 prompt templates. Basic observability.
Free
Gateway (OSS)
MIT-licensed gateway only (no observability UI). Self-host for routing/fallbacks.
$0 base (usage-based)
Production
$49/month. 100k logs ($9 per additional 100k). Fallbacks, load balancing, retries, semantic caching. Unlimited prompts. RBAC.
$49/mo
Enterprise
Custom. 10M+ logs/month. Custom guardrails, advanced evals, SSO, budget controls, VPC + on-prem, SOC2, HIPAA, GDPR.
Custom
Portkey website

Free-tier quotas head-to-head

Comparing free on Cody vs free on Portkey.

MetricCodyPortkey
No overlapping quota metrics for these tiers.

Features

Cody · 17 features

  • Audit LogsEnterprise compliance.
  • AutocompleteInline code completion.
  • Batch Changes (Enterprise)Large-scale automated refactors.
  • ChatConversational AI with @-context.
  • Code Graph ContextAutomatic dependency-aware context.
  • Commands (Slash)Pre-built prompts (/explain, /doc, /test).
  • Custom PromptsShareable team-level prompt library.
  • Inline EditHighlight code → edit via natural language.
  • JetBrains PluginIntelliJ/PyCharm/WebStorm/etc.
  • @ MentionsAdd files/symbols/URLs as context.
  • Multi-LLM SelectionPick Claude/GPT/Gemini per request.
  • Neovim PluginNvim integration.
  • On-Prem Deploy (Enterprise)Self-host full Sourcegraph + Cody.
  • OpenCtx ExtensionsThird-party context providers.
  • Prompts LibraryTeam-wide reusable prompts.
  • SSO (Enterprise)SAML + OIDC.
  • VS Code ExtensionPrimary IDE.

Portkey · 18 features

  • AI GatewayUnified OpenAI-compatible API to 250+ LLMs.
  • AlertsThresholds on latency, error rate, cost, usage.
  • Budget ControlsPer-key + per-team spending limits.
  • EvaluationsBuilt-in evaluator templates + custom.
  • FallbacksConfig-driven provider fallback chains.
  • GuardrailsPre/post processors for safety + compliance.
  • Load BalancingRound-robin, weighted, least-latency across providers.
  • MCP SupportUse MCP servers as tools through gateway.
  • ObservabilityLogs, traces, feedback, alerts, cost tracking.
  • OSS GatewayOpen-source gateway (portkey-ai/gateway).
  • Prompt LibraryShared prompt library + public marketplace.
  • Prompt TemplatesVersion + test + collaborate on prompts.
  • RetriesConfigurable retry policies per route.
  • Role-Based Access ControlTeam permissions on prompts + keys.
  • Semantic CachingVector-based cache on query meaning.
  • Simple CachingExact-match cache.
  • Virtual KeysPer-app keys with budget + rate limits + permissions.
  • VPC Deployment (Ent)Deploy in your own VPC for compliance.

Developer interfaces

KindCodyPortkey
CLIsrc CLI (context tool)Portkey CLI
SDKportkey-ai (Node), portkey-ai (Python)
RESTCody API (Enterprise)Portkey API (OpenAI-compat)
MCPPortkey MCP
OTHERCody for JetBrains, Cody for Neovim, Cody for VS Code, Sourcegraph Cloud WebPortkey Dashboard
Staxly is an independent catalog of developer platforms. Some links to Cody and Portkey may be affiliate links — Staxly may earn a commission if you sign up through them, at no extra cost to you. Pricing is verified against vendor pages at publication time — reconfirm before buying.

Want this comparison in your AI agent's context? Install the free Staxly MCP server.