惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
H
Heimdal Security Blog
Jina AI
Jina AI
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
AWS News Blog
AWS News Blog
C
Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Hacker News
The Hacker News
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
S
Securelist
P
Privacy International News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 聂微东
博客园 - 叶小钗
J
Java Code Geeks
V
V2EX
博客园 - Franky
Spread Privacy
Spread Privacy
K
Kaspersky official blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Simon Willison's Weblog
Simon Willison's Weblog
Project Zero
Project Zero
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
C
CERT Recently Published Vulnerability Notes
Latest news
Latest news
NISL@THU
NISL@THU
罗磊的独立博客
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
V
Visual Studio Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Kimi K2.7-Code: Open-Weight 1T Model That Beats Claude Opus on Tool Use
Anup Karanjkar · 2026-06-15 · via DEV Community

81.1% on MCPMark Verified — that's Kimi K2.7-Code's tool-use score, which clears Claude Opus 4.8's 76.4% on the same benchmark. The model is open-weight, costs $0.95 per million input tokens at Moonshot's API, and dropped on June 12, 2026 under a modified MIT license. If you're running agentic pipelines that make heavy use of MCP tools, the arithmetic on switching is straightforward.

Here's what you actually need to know about this release.

Architecture: What Makes a 1T MoE Model Different

K2.7-Code is a Mixture-of-Experts model with 1 trillion total parameters. That number sounds overwhelming until you realize only 32 billion are active per token inference — the rest sit dormant in the 384-expert pool, waiting for routing decisions. The active footprint is comparable to a mid-size dense model; the full-weight checkpoint is not.

At 340GB, the checkpoint is not a weekend project. Moonshot's Hugging Face page lists vLLM, SGLang, and KTransformers as verified inference engines. The vLLM INT4 quantized setup requires 8×H200 GPUs — roughly 640GB aggregate VRAM. That's a 10-node Kubernetes cluster, not a developer laptop.

Context window is 256K tokens. For most agentic workflows involving tool calls over a long session, that's enough headroom. Versus K2.6: K2.7 cuts reasoning-token usage by 30% on equivalent tasks, which matters when you're billing per token and running multi-step agent loops.

Benchmarks: Where It Beats Claude, Where It Doesn't

Moonshot reports +21.8% over K2.6 on Kimi Code Bench v2, +11.0% on Program Bench, and +31.5% on MLS Bench Lite. Those are internal benchmarks measuring improvements within the K2 family, not absolute comparisons to frontier models. The cross-model comparison tells a more nuanced story:

Benchmark Kimi K2.7-Code Claude Opus 4.8 GPT-5.5

| MCPMark Verified | 81.1% | 76.4% | 92.9% |

| Kimi Code Bench v2 | 62.0 | 67.4 | 69.0 |

| Program Bench (vs K2.6) | +11.0% | — | — |

| MLS Bench Lite (vs K2.6) | +31.5% | — | — |

The pattern: K2.7-Code has a specific edge in MCP tool-use tasks, where it beats Claude Opus 4.8 by 4.7 points. On general coding quality via Kimi Code Bench v2, it's behind both Claude Opus 4.8 (67.4) and GPT-5.5 (69.0). GPT-5.5 is still comfortably ahead on MCPMark at 92.9% — an 11.8-point gap over K2.7-Code.

The honest read: K2.7-Code is not a frontier model. It's a competitive open-weight coding agent with a standout tool-use benchmark and a price point that makes it worth evaluating for cost-sensitive MCP-heavy workloads. The Kimi Code Bench v2 result (62.0 vs 67.4 for Opus) is a real deficit on complex code generation tasks.

Pricing: The 12x Argument

GPT-5.5 runs $11.00 per million input tokens and $44.00 per million output tokens (per The Decoder, June 2026). K2.7-Code via Moonshot API is $0.95 in / $4.00 out. Via OpenRouter, $0.75 in / $3.50 out.

Model Input ($/M tokens) Output ($/M tokens) MCPMark

| GPT-5.5 | $11.00 | $44.00 | 92.9% |

| Claude Opus 4.8 | $5.00 | $25.00 | 76.4% |

| K2.7-Code (Moonshot) | $0.95 | $4.00 | 81.1% |

| K2.7-Code (OpenRouter) | $0.75 | $3.50 | 81.1% |

| K2.7-Code (cached input) | $0.19 | $4.00 | 81.1% |

K2.7-Code on cached inputs — $0.19/M — is genuinely cheap for repeated system-prompt calls in long-running agents. A pipeline that sends 10M input tokens per day on warm cache runs at $1.90 instead of $50 with Claude Opus 4.8. That's not marketing math; it's arithmetic.

The tradeoff: if your benchmark requirement is the highest possible MCPMark score, you're 11.8 points short of GPT-5.5 and you'd need to justify the quality gap. For workflows where Claude Opus 4.8's 76.4% is acceptable, K2.7-Code's 81.1% at a fifth the cost is the obvious move.

How to Use Kimi K2.7-Code

Option 1: Moonshot API (Recommended for Most Developers)

The Moonshot API is OpenAI- and Anthropic-compatible, meaning swapping K2.7-Code into an existing pipeline is a base-URL and model-string change, not a rewrite.

import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.MOONSHOT_API_KEY,
  baseURL: 'https://api.moonshot.ai/v1',
})

const response = await client.chat.completions.create({
  model: 'kimi-k2.7-code',
  messages: [
    { role: 'user', content: 'Write a TypeScript function to parse MCP tool responses.' }
  ],
  max_tokens: 2048,
})

console.log(response.choices[0].message.content)

Get your API key at platform.moonshot.ai. As of June 14, 2026, access was immediate after account verification — no waitlist.

Option 2: OpenRouter

OpenRouter exposes K2.7-Code at moonshotai/kimi-k2.7-code with unified billing if you're already running mixed-model pipelines through them. Input pricing is $0.75/M — cheaper than Moonshot direct. The latency overhead from OpenRouter's proxy layer is measurable but small on long-context requests.

Option 3: Kimi Code Terminal Agent

Moonshot ships a CLI agent called Kimi Code, targeting the same terminal-based agentic coding workflows as Claude Code. If you want to benchmark it on your actual codebase:

npm install -g kimi-code
kimi-code auth
kimi-code "refactor this module to use TypeScript strict mode"

No separate public pricing page for Kimi Code as of this writing — it bills against your Moonshot API key at standard K2.7-Code rates.

Option 4: Self-Hosting (Proceed With Eyes Open)

The weights are on Hugging Face under moonshotai/Kimi-K2.7-Code. The verified INT4 setup:

# Minimum verified: 8x H200 (640GB aggregate VRAM)
pip install vllm --pre

vllm serve moonshotai/Kimi-K2.7-Code \
  --quantization awq \
  --tensor-parallel-size 8 \
  --max-model-len 65536

340GB checkpoint. 8×H200 for INT4. If you have that infrastructure already, self-hosting cuts your cost to $0 per token at the model layer. Most developers don't have 640GB of H200 on hand — use the API.

K2.7-Code vs K2.6: What Actually Changed

K2.6 was released in late April 2026 and immediately led open-weight models on HLE (Humanity's Last Exam). K2.7-Code is not a general-capability upgrade — it's a coding-specialist fine-tune on K2.6's base. The architecture is identical: same MoE structure, same expert count, same context window.

The three measurable changes:

  1. 30% fewer reasoning tokens on K2.7-Code compared to K2.6 on equivalent coding tasks. Reasoning chains are more direct, with less self-correction noise between tool calls.

  2. +21.8% on Kimi Code Bench v2. That's a meaningful jump in one revision cycle — it suggests the fine-tuning dataset was specifically targeted at the failure modes K2.6 exhibited on this benchmark.

  3. MCP tool-use score improved enough to clear Claude Opus 4.8. Moonshot didn't publish K2.6's MCPMark score directly, so the absolute gain is opaque, but the resulting 81.1% is the number that matters.

What didn't change: general reasoning capability outside coding domains. This is not a drop-in replacement for K2.6 if your pipeline handles mixed workloads. It's optimized specifically for code-heavy, tool-heavy agentic tasks. Routing the wrong workload class here will get you worse results than K2.6.

When to Use It (and When Not To)

Use K2.7-Code if you're running MCP-heavy agentic pipelines that currently use Claude Opus 4.8 and you're looking to cut inference costs without sacrificing tool-use accuracy. The MCPMark gap — K2.7 at 81.1% vs Opus at 76.4% — means you're not trading quality for cost here. You're gaining 4.7 points on the benchmark that matters most for that workload class.

Don't switch if raw code quality on complex tasks is the priority. On Kimi Code Bench v2, both Claude Opus 4.8 and GPT-5.5 outperform K2.7-Code. Novel algorithm implementation, deep architectural reasoning, or code that requires multi-step chain-of-thought on hard problems still favors the closed frontier models.

The practical two-model strategy: route agentic tool-calling tasks to K2.7-Code via OpenRouter at $0.75/M, keep Claude Opus 4.8 or GPT-5.5 on retainer for high-stakes code generation. LiteLLM's router makes this a single config change:

model_list:
  - model_name: "tool-agent"
    litellm_params:
      model: "openrouter/moonshotai/kimi-k2.7-code"
      api_key: os.environ/OPENROUTER_API_KEY
  - model_name: "code-gen"
    litellm_params:
      model: "anthropic/claude-opus-4-8"
      api_key: os.environ/ANTHROPIC_API_KEY

The Modified MIT License: What It Actually Allows

Moonshot's modified MIT license adds one material restriction over standard MIT: you cannot use these weights as training data to build a competing foundation model without a separate commercial agreement. Standard commercial deployment, fine-tuning for vertical applications, and redistribution are all permitted.

For the vast majority of developer use cases — building products on top of K2.7-Code or fine-tuning it for a domain-specific task — the modified terms are not a practical constraint. Read the full license on the Hugging Face model card before deploying if you're in any doubt about your specific use case.

What Comes Next in the K2 Line

Moonshot has shipped five major releases in under a year (K2.0 through K2.7). The cadence suggests K2.8 or K3 before year-end. The pattern so far: alternating general-capability and coding-specialist releases, with each coding specialist cutting reasoning-token usage and improving Kimi Code Bench scores.

The competitive pressure this creates is real. K2.7-Code's MCPMark result — beating Claude Opus 4.8 at a fifth the price, on an open-weight model — is exactly the kind of result that forces Anthropic and OpenAI to either lower pricing or make a public case for why their closed models are worth the premium on agentic tasks. For developers running cost-sensitive agents at scale, that competition is worth watching closely.

Originally published at wowhow.cloud