Skip to main content

AI Kit is the first CLI thats not designed for you. Its for your agent.

Project description

AI Kit

AI Kit is designed for your IDE's agent.

Built to integrate with text editors like Cursor or Windsurf (or any environment with a shell), it extends your agent with search, reasoning, and memory.

Getting Started 🚀

Since AI Kit leverages the most cutting edge models at any given time, you'll need some API keys. Fortunately, the cost of running these models is very low.

Required API Keys:

  • GROQ_API_KEY - For lightning-fast thinking with r1-70B (get it here)
  • TOGETHER_API_KEY - For deep thinking and reasoning with r1-670B (sign up)
  • GEMINI_API_KEY - For smart routing (grab one)

Optional API Keys:

  • COHERE_API_KEY - For reranking search results (get access)

Drop these in your .env file at your project root.

Quick Setup

# 1. Initialize AI Kit (creates necessary dirs and system prompts)
ai-kit init

# 2. Add your API keys to .env
GROQ_API_KEY=your_key_here
TOGETHER_API_KEY=your_key_here
GEMINI_API_KEY=your_key_here
COHERE_API_KEY=your_key_here  # Optional

# 3. Verify everything's working
ai-kit help

That's it! Run ai-kit help anytime to check your setup status, or ai-kit status to view API keys.

The "Brain" 🧠

graph TD
    User([User])
    Exec["Executioner LLM<br/>1) Shell<br/>2) Read/Write<br/>3) Local Grep"]
    Router["Router (Gemini)"]
    Think["Quick Think (Groq R1-70B)"]
    DeepThink["Deep Think (Together R1)"]
    Prompts[(User Prompts)]
    System[(System Prompts)]
    
    User <--> Exec
    Exec --> Router
    
    subgraph Brain
        Router -->|simple| Exec
        Router -->|think| Think
        Router -->|deep think| DeepThink
        Think --> Prompts
        Think --> System
        Think -->|thought stream| Exec
        DeepThink --> Prompts
        DeepThink --> System
        DeepThink -->|thought stream| Exec
    end

The thinking system (brain) has three main components:

  1. The IDE Agent - This is the built in agent in your IDE. I'd recommend using Cursor + Claude.
  2. The Router - Uses Gemini to route queries to the appropriate reasoning LLM.
  3. The Thinking LLM - Injects thinking tokens from R1 into the agent's context.

Tools

The agent has access to a few extra tools:

  • search - Search the web for information
  • fetch - Fetch a URL and return the content
  • crawl (beta) - Crawl a website and save the content

Principles 🎯

  • Local first, for full control
  • Hardcode as little as possible, instead use composable patterns and leverage agency
  • Runtime first, prepare as little as possible, give the agent tools instead
  • Use a non-reasoning model (like Claude-3.5-sonnet) for tool calls and edits and rely on reasoning models for planning and orchestration

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_ai_kit-0.14.1.tar.gz (71.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_ai_kit-0.14.1-py3-none-any.whl (90.5 kB view details)

Uploaded Python 3

File details

Details for the file python_ai_kit-0.14.1.tar.gz.

File metadata

  • Download URL: python_ai_kit-0.14.1.tar.gz
  • Upload date:
  • Size: 71.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for python_ai_kit-0.14.1.tar.gz
Algorithm Hash digest
SHA256 3b3c5c5623291eed3a4a0adf4b4db5a8a93a12bdc7dd0aeca28587559d1210b9
MD5 b7152285b780781236b12774df96d3d6
BLAKE2b-256 6ebeed4faec7cf84ede37a5044aadfc22cfd3eef57e77fd5d3547a295614087d

See more details on using hashes here.

File details

Details for the file python_ai_kit-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: python_ai_kit-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 90.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for python_ai_kit-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7860bbd004b3cde4d9f39763d5fdabd68bbc1723b6fe87f4e033cc824f6be788
MD5 b42221900a5fbd9ada1c3bfe6b1bf2a6
BLAKE2b-256 9bc1b8993dec365a1fb1cb99913c7966ca8a9f9d765e4815f8f7caf1ec671b7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page