How to connect DeepSeek to CLI in 2 mins: No API key needed

You can search the web and read web pages through DeepSeek from CLI, and use DeepSeek's chat models with your own DeepSeek key. Composio lets you use DeepSeek inside CLI.

DeepSeekInstant · No API key

CLI runs DeepSeek through Composio, and the cost comes out of your free $2.

  • Ranked web results for a search$0.00075
  • A web page as clean Markdown$0.00075
  • Search results with the page text included$0.00075

$2 ≈ 2600 searches or 2600 pages

Composio Instant

What you can do with your free $2

What your free $2 gets you with DeepSeek
When you ask CLI forCLI uses this toolCostWhat $2 gets you
Ranked web results for a searchSearch Web$0.00075 per searchAbout 2,600 searches
A web page as clean MarkdownFetch Webpage$0.00075 per pageAbout 2,600 pages
Search results with the page text includedSearch Web$0.00075 per searchAbout 2,600 searches

You pay DeepSeek's price for each call with 0% markup, plus the regular Composio tool call charge. There's no DeepSeek subscription, and you only pay for what you use.

2 of 6 DeepSeek tools work without a key. For Create Anthropic Message, Create Chat Completion, Get User Balance and List Models, connect your own DeepSeek key. Read how Instant works.

How it works

How to connect DeepSeek to CLI

Composio adds DeepSeek to CLI as an Instant toolkit. You connect Composio to CLI once, and then CLI can use DeepSeek right away. There are two ways to do this:

  • Bring your own key

    You bring your own DeepSeek API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own DeepSeek account, so you don't have to set anything up at DeepSeek, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build DeepSeek into your own product, turn on Instant toolkits in your project settings so your agent can call DeepSeek for each of your users without a DeepSeek API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use DeepSeek in CLI in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to CLI

    Follow the setup below. You only do this once.

  3. Ask CLI for something

    Try a DeepSeek prompt. The cost comes out of your $2.

Setup

Prerequisites

Install the Composio CLI, authenticate, and initialize your project:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login

During login you'll be redirected to sign in page, finish the complete flow and you're all set.

Composio CLI authentication flow

Connecting DeepSeek to Coding Agents via Universal CLI

Once it is installed, it's essentially done. Claude Code, Codex, OpenCode, OpenClaw, or any other agent will be able to access the CLI. A few steps to give agents access to your apps.

  1. Launch your Coding Agent — Claude Code, Codex, OpenCode, anything you prefer.
  2. Prompt it to "Authenticate with DeepSeek"
  3. Complete the authentication and authorization flow and your DeepSeek integration is all set.
  4. Start asking anything you want.
Try it

Ask CLI for something with DeepSeek

Start a new chat and try this prompt:

For each URL in urls.txt (up to 50), fetch the page and save the markdown to docs/pages/ with a file name made from the URL. Write docs/pages/index.md listing each file, its page title and its source URL.

CLI runs it on Instant and shows you the result. It doesn't ask you for a DeepSeek key, and the cost comes out of your $2. You can see each call in your wallet.

Optional: connect your own DeepSeek key

If you want Create Anthropic Message, Create Chat Completion, Get User Balance and List Models, you need your own key. Ask CLI to connect your DeepSeek account, and it gives you a Composio link:

Connect my DeepSeek account using Composio.

Open the link, paste your DeepSeek API key and click Connect Account. You can get a key from DeepSeek Platform API keys page. After that, Composio uses your key first and doesn't charge Instant for those calls.

Starter prompts

Use your first $2: copy a prompt into CLI

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Save a list of web pages as markdown files

    About $0.04

    Fetches every URL in a file and saves each page as markdown, with an index of what was saved.

    For each URL in urls.txt (up to 50), fetch the page and save the markdown to docs/pages/ with a file name made from the URL. Write docs/pages/index.md listing each file, its page title and its source URL.

  • Research a list of questions into one report

    Less than $0.01

    Searches the web for each question in a file and writes one report with a sourced answer per question.

    For each question in questions.txt (up to 10), search the web with page content included and write a short answer. Save everything to research.md with one section per question and a source link for every claim.

  • Write upgrade notes for your dependencies

    Less than $0.01

    Finds and reads the migration guide for each package you plan to upgrade and lists what affects your code.

    I want to upgrade these packages to their latest major versions: [list up to 5 packages]. For each one, search for the official migration guide, read it and write UPGRADE_NOTES.md with the breaking changes that affect the code in this repo.

  • Pull the same fields from a list of pages into a CSV

    About $0.02

    Fetches each page in a list, picks out the fields you name and writes one row per page.

    For each URL in urls.txt (up to 30), fetch the page and pull out [fields, e.g. product name, price and stock status]. Write data.csv with one row per URL and leave a cell empty when a field is missing.

What it can do

What CLI can do with DeepSeek

Works without a key

  • Ranked web results for a search
  • A web page as clean Markdown
  • Search results with the page text included

Needs your own DeepSeek key

  • Create Anthropic Message
  • Create Chat Completion
  • Get User Balance
  • List Models
Tools and prices

Supported tools (6)

DeepSeek tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Fetch WebpageFetch one known webpage through DeepSeek and return extracted Markdown.Yes$0.075 per 100 successful page fetches
Search WebSearch DeepSeek's web index and return ranked structured results.Yes$0.075 per 100 successful requests
Create Anthropic MessageCreate a model response using DeepSeek's Anthropic-compatible Messages API, with system prompts, tool calling and thinking mode.Needs your own keyBilled to your own DeepSeek key
Create Chat CompletionCreate a chat completion using deepseek-chat or deepseek-reasoner for a conversation, with tool/function calling and generation controls such as temperature and max_tokens.Needs your own keyBilled to your own DeepSeek key
Get User BalanceTool to get user's current account balance including granted and topped-up balances with detailed breakdown by currency (CNY or USD).Needs your own keyBilled to your own DeepSeek key
List ModelsTool to list currently available DeepSeek models and provides basic information about each one such as the owner and availability.Needs your own keyBilled to your own DeepSeek key
Pricing

How you pay for DeepSeek

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay DeepSeek's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own DeepSeek key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. CLI asks me for a DeepSeek API key

    You may have asked for something that needs your own key, like Create Anthropic Message, Create Chat Completion, Get User Balance and List Models. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A DeepSeek call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own DeepSeek key, then try again.

FAQ

Frequently asked questions

Start with DeepSeek.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run DeepSeek from your agent with no DeepSeek key.

Get $2 starter credit