TutorialFebruary 6, 20267 min read

How to Deploy Projects with Kimi K2.5 and DartUp

Moonshot's Kimi K2.5 is one of the strongest open-source coding models available. Pair it with DartUp and you can go from idea to live URL without leaving the terminal. Here's how.

Why Kimi K2.5?

Kimi K2.5 is Moonshot AI's flagship model—1 trillion parameters with 32B activated via Mixture-of-Experts, a 256K context window, and benchmark-leading code generation. It scores 76.8% on SWE-Bench Verified, meaning it can resolve real GitHub issues, not just toy problems.

It's particularly strong at frontend development and visual coding—give it a screenshot and it produces faithful, interactive code. And with the Kimi Code CLI, you get a terminal-native coding agent that supports MCP (Model Context Protocol), which means it can use DartUp's deployment tools directly.

What You'll Need

  • A DartUp account (free)
  • Node.js 18+ installed
  • Python 3.8+ installed (for Kimi CLI)
  • A Kimi API key from kimi.com

Setup: Two Options

There are two ways to use Kimi K2.5 with DartUp. Pick whichever fits your workflow.

Option A: Kimi Code CLI + DartUp MCP Server (Recommended)

This gives Kimi the ability to deploy directly—no copy-pasting API calls. Just say "deploy this" and it handles the rest.

1

Install Kimi Code CLI

Terminal

$ pip install kimi-cli

2

Install the DartUp MCP server

Terminal

$ npm install -g dartup-mcp@latest

3

Add DartUp to Kimi's MCP config

Run the following command, replacing the API key with your own from the DartUp dashboard:

Terminal

$ kimi mcp add --transport stdio dartup -- dartup-mcp

Then set your API key. Open ~/.kimi/mcp.json and add the env variable:

~/.kimi/mcp.json
{
  "mcpServers": {
    "dartup": {
      "command": "dartup-mcp",
      "env": {
        "DARTUP_API_KEY": "jd_your_api_key_here"
      }
    }
  }
}
4

Start building and deploying

That's it. Now Kimi Code has full access to DartUp's deployment tools. Start a session and go:

Kimi Code CLI

You: Build a markdown note-taking app with search and tags. Use React + Vite. Then deploy it to DartUp as "notes".

Building note-taking application...

✓ Created React app with Vite

✓ Added NoteEditor component with markdown preview

✓ Added SearchBar with tag filtering

✓ Added localStorage persistence

✓ Styled with Tailwind CSS

Deploying to DartUp...

✓ Detected: React (Vite)

✓ Built production bundle

✓ Container deployed

Live at: https://notes.dartup.dev

Option B: Kimi Chat + DartUp API

If you prefer using Kimi through the web chat at kimi.com, you can still deploy to DartUp. Ask Kimi to generate your project, push it to GitHub, then deploy with a single API call:

Deploy from GitHub
curl -X POST https://dartup.dev/api/deploy \
  -H "Authorization: Bearer jd_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "github_url": "https://github.com/you/your-app",
    "subdomain": "my-app"
  }'

You can also ask Kimi to write the curl command for you—just paste it into your terminal.

Example: Full-Stack App with Database

Kimi K2.5 handles complex projects well. Here's a full-stack app with a Postgres database:

Kimi Code CLI

You: Build a bookmarks manager API with:

- Express + TypeScript

- CRUD endpoints for bookmarks (title, url, tags)

- Search by tag

- Use PostgreSQL with Prisma

Deploy to DartUp as "bookmarks" with a Postgres database.

Building bookmarks API...

✓ Initialized Express + TypeScript project

✓ Created Prisma schema with Bookmark model

✓ Added CRUD routes (/bookmarks)

✓ Added tag search endpoint

Deploying to DartUp...

✓ Detected: Node.js (TypeScript)

✓ PostgreSQL sidecar created

✓ DATABASE_URL injected

✓ Container deployed

Live at: https://bookmarks.dartup.dev

DartUp auto-provisions the Postgres database and injects the connection string. Kimi writes the code, DartUp handles the infrastructure.

Example: Discord Bot

Kimi K2.5 can build daemon-type projects too. Here's a Discord bot:

Kimi Code CLI

You: Build a Discord bot that:

- Responds to /poll to create polls with reactions

- Responds to /remind to set timed reminders

- Uses discord.js

Deploy as a daemon to DartUp. My Discord token is in env var DISCORD_TOKEN.

Building Discord bot...

✓ Created bot with slash commands

✓ Added /poll with emoji reactions

✓ Added /remind with setTimeout scheduler

Deploying daemon...

✓ Detected: Daemon (discord.js)

✓ DISCORD_TOKEN configured

✓ Running 24/7 with auto-restart

Bot is online!

Tips for Getting the Best Results

Be specific in your prompts

Kimi K2.5 has a 256K context window—use it. Describe your tech stack, list features, specify the UI style. The more detail, the better the first result.

Use Agent Mode for complex tasks

For multi-file projects, Kimi's Agent Mode handles sequential tool calls across 200+ steps without losing track. It'll scaffold, write code, test, fix, and deploy in one flow.

Give it screenshots for UI work

Kimi K2.5 is natively multimodal. Paste a screenshot of a design or a competing app and say "build something like this." It'll match the layout and interactions faithfully.

Iterate fast with redeploys

Deploying an update to the same subdomain replaces the previous version. Just say "update the deploy" after making changes—Kimi will push the new version.

Kimi K2.5 vs Other AI Coding Agents

DartUp works with any tool that can hit an API or use MCP. But Kimi K2.5 brings some unique strengths:

FeatureKimi K2.5Claude Code
Open-source weightsYesNo
Visual coding (screenshot to code)Native multimodalMultimodal
Agent swarm (parallel sub-agents)Up to 100 sub-agentsSequential
MCP supportYesYes
Context window256K tokens200K tokens
API cost (1M in + 1M out)~$3.60Varies by model

Both work great with DartUp. Use whichever fits your project and budget.

Quick Reference: DartUp Deploy Options

When deploying from Kimi, you can use any of these DartUp features:

Deploy with all the extras
{
  "github_url": "https://github.com/you/app",
  "subdomain": "my-app",
  "database": "postgres",
  "persistentVolume": true,
  "volumePath": "/app/data",
  "env": {
    "NODE_ENV": "production",
    "API_SECRET": "auto-generated"
  },
  "custom_domain": "myapp.com"
}
  • database: postgres, mysql, redis, or mongodb (Pro)
  • persistentVolume: 1GB storage that survives redeploys (Pro)
  • type: "daemon" for bots and workers (Pro)
  • custom_domain: your own domain with auto TLS (Pro)
  • env: environment variables, injected securely
  • Common secrets like SECRET_KEY are auto-generated

Get Started

The fastest path from idea to live app with Kimi K2.5:

  1. Sign up at dartup.dev (free)
  2. Get your API key from the dashboard
  3. Install Kimi CLI: pip install kimi-cli
  4. Install DartUp MCP: npm install -g dartup-mcp@latest
  5. Add DartUp to ~/.kimi/mcp.json
  6. Open Kimi Code and say "build me [your idea] and deploy it to DartUp"

Build with Kimi, deploy with DartUp

Free tier includes 1 project. No credit card required.