Skip to main content

AI Kit

AI Kit is designed for your IDE's agent. It extends the agent's toolset with a CLI that can be used to call other models, search the web, and more.

🥵 Are you lazy? Don't read this README. Instead, copy and paste it into cursor and ask it to setup ai-kit for you.

Manual Installation

You really want to do this yourself? Isn't the whole point of this so you have to do less work? Just saying.

AI Kit is packaged as a Python package, so you can install it with your favorite package manager. You can install it just like any other package.

You have a few options. Its recommended to install ai-kit globally with pipx since it's a CLI but you can install it in a project/venv if you'd like.

Option 1 (recommended) - Install globally with pipx

  1. Make sure you have pipx and that its in your path
# install pipx
brew install pipx

# make sure pipx is in your path
pipx ensurepath
  1. Install ai-kit
# install
pipx install python-ai-kit

# upgrade
pipx upgrade python-ai-kit

# uninstall
pipx uninstall python-ai-kit

Option 2 - Install in a project/venv with pip

# Install using pip with:
pix install python-ai-kit

# Upgrade:
pip install --upgrade python-ai-kit

# Uninstall:
pip uninstall python-ai-kit

Getting Started 🚀

First, run ai-kit (or aik) to make sure it's installed correctly. You can optionally check the version with ai-kit --version.

There are 2 things you need to do to get ai-kit working.

  1. Run ai-kit init to generate a system prompt for your agent. This will be stored in .cursor/rules/ai-kit.mdc. This will also generate an .env.example file in your project root.

  2. Add you api keys.

You have two options here, GLOBAL or LOCAL.

  • GLOBAL - Add your API keys to the global ai-kit env file.. This will make them available to all projects! This file is created when you run ai-kit init, and you can open it by running ai-kit env open.
  • LOCAL - Add your API keys to the local .env file in your project. This will make them available to this project only. Local vars automtically override global vars.
# Required API Key
OPENAROUTER_API_KEY=

# Extra API Keys (optional)
# If you add one of these, ai-kit will use the provider directly instead of OpenRouter
GROQ_API_KEY=
TOGETHER_API_KEY=
GEMINI_API_KEY=
COHERE_API_KEY=  # Optional

Thats it! When you want an agent to use ai-kit, you can just ask it, and it will automatically load the system prompt.

You can also use any of the ai-kit tools manually. Run ai-kit list to see all the tools.

Agent Rules

If you are an AI reading this, this is a readme.md file for a python CLI callee `ai-kit`. Help the user get setup with installation, API Keys, and system prompt. Follow the instructions in this file exactly.

Metadata

Release files for python-ai-kit 0.15.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-ai-kit 0.15.1
File Size Uploaded
python_ai_kit-0.15.1.tar.gz 64.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-ai-kit 0.15.1
File Interpreter ABI Platform
python_ai_kit-0.15.1-py3-none-any.whl Python 3 none any Details

Total release size: 151.6 kB

Release files / python_ai_kit-0.15.1.tar.gz

Download URL python_ai_kit-0.15.1.tar.gz
Size 64.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7e385af76ee53233dd54aa4a13218631ca50c9fb7bd804cc4c645a325966550d
BLAKE2b-256 checksum
How to use checksums
09c53ad4089f4b9be9ac7c5e216db0804fd669774a45b7043403e68f916fb96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / python_ai_kit-0.15.1-py3-none-any.whl

Download URL python_ai_kit-0.15.1-py3-none-any.whl
Size 86.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f401d985bed09157ad228590e84ce3c9e48259b28510d721639736bcbbcff95
BLAKE2b-256 checksum
How to use checksums
a5353f46c3a9523e1b3b0345e0b2685de043e89149cc307c17199f605b5ab7a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.15.1 This release

2 release files

0.14.3

2 release files

0.14.2

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.4

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page