Skip to content

🕊️ Build and embed open-source AI Copilots into your product with ease

License

Notifications You must be signed in to change notification settings

CyberFlameGO/opencopilot

Repository files navigation

OpenCopilot

OpenCopilot is a Python framework for building custom and private copilots.

Unit tests Package version Package version Package version

Documentation: docs.opencopilot.dev

Overview

OpenCopilot is a Python framework for building custom and private copilots. It's designed to be fast to get started, extensible, and easy to use. Using OpenCopilot, you can see your copilot come live in 5 minutes, and making a fully functional copilot should take you less than a day.

Example Copilots built with OpenCopilot

  • Ready Player Me Copilot which helps developers integrate RPM avatar SDK into their games.
  • Unity Copilot which helps Unity developers debug, write code and speed up their development flow.

Quickstart

1. Install the Python package

pip install opencopilot-ai

2. Create a minimal Copilot

Into a Python file (for example, copilot.py), add:

from opencopilot import OpenCopilot

copilot = OpenCopilot()
copilot()

3. Run the Copilot

python copilot.py

That's it! The copilot is now running as an API service! 🎉 You can now chat with it: TODO how? (CLI, frontend, etc)

OpenCopilot by default helps you setup a Python API service for your copilot. That is intentional: we expect most people to integrate the functionality into their own application. However, if you want to setup a front-end for your copilot, we provide a working NextJS application out of the box. Follow the steps below to do so.

Front-end

As a pre-requisite, you need to have pnpm installed.

First, clone the repo you're in: opencopilotdev/opencopilot:

git clone [email protected]:opencopilotdev/opencopilot.git

Then, setup the environment variables:

cd opencopilot/frontend
cp .env.example .env

Install the dependencies:

pnpm install

Run the front-end application:

pnpm run dev

You can now access the front-end at http://localhost:3001.

What next?

  • Make the copilot yours: customize your copilot by prompting, adding context, etc.
  • Read more about the core features and stack choices of OpenCopilot in Overview.

Getting help

If you have any questions about OpenCopilot, feel free to do any of the following:

  • Join our Discord and ask in the #support channel.
  • Report bugs or feature requests in GitHub issues.
  • Directly email Taivo, Co-founder & CTO of OpenCopilot: taivo [at] opencopilot.dev.

About

🕊️ Build and embed open-source AI Copilots into your product with ease

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •