Airstrip-AI / airstrip

Open-source enterprise generative AI platform

Home Page:https://airstrip.pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Airstrip: Open-source enterprise generative AI platform

Airstrip is an open-source enterprise generative AI platform. Airstrip combines the best-in-class open-source tools to provide a complete and secure platform that allows you to build generative AI apps easily.

  • Teams and RBAC.
  • LLM Integrations.
    • API keys encryption.
  • Memory layer for enhanced context. (Use your mem0 API key or run https://github.com/Airstrip-AI/mem0-rest/ for self-hosting Airstrip)
  • LLM usage analytics.
  • RAG and Chunking.
  • Notion-style editing.
  • [] ( 💡 ) Rate-limits
  • [] ( 💡 ) REST APIs.
Legend
💡 Planned
🚧 WIP

Getting started

The fastest way to try Airstrip is signing up for free at Airstrip Cloud.

Note

We treat your API keys seriously. All API keys are encrypted and only decrypted at the point of usage. We also use Infisical for storing our keys securely and access to them are restricted.

Run Airstrip locally

Prereqs: Make sure you have Git and Docker installed.

cp airstrip-fe/sample.env airstrip-fe/.env
cp airstrip-be/sample.env airstrip-be/.env
docker compose up

That's all you need to get started. The default setup uses the sample encryption key in sample.env. It is advisable to change it for production usage. If you are already using Infisical and you wish to store and use your encryption key in it, you may do so by updating the .env file.

For details on the default values and how to change them, refer to this (optional) section.

Features

Manage AI integrations

Bring your own API keys and connect to different LLM providers. We currently support OpenAI, Mistral, Google, Cohere, Anthropic, and self-hosted LLMs with an OpenAI-compatible interface.
ai-integrations

Teams and role-based access control

Manage teams and control access to different AI integrations.
teams

Build and use internal AI apps

Build internal AI apps by adding prompts and specifying which LLM provider to connect to.
Screenshot 2024-09-16 at 16 45 36 Screenshot 2024-09-16 at 16 46 40

Usage analytics

View LLM token usages and requests.
Screenshot 2024-09-11 at 12 32 26

How to use

Roles

  • Upon creating an account, you will be assigned an organization which you are an owner of. You can invite people to your organization.
  • There are 3 types of roles: Owner, Admin, and Member.
  • There is no difference between Owner and Admin at the moment other than Admin is unable to change an Owner's role.
  • Whatever an Admin can do, an Owner can do too. When you see the term "admin", it means "Admins and Owners" unless otherwise specified.
  • The 3 roles also apply to team members.

Teams

  • Each organization can have many teams. Only org admins can create teams.
  • Org admins and team admins can invite members to the team.

AI (LLM) integrations

  • AI integrations can only be created by org admins and are created at the org level.
  • AI integrations can be restricted to a team, i.e. only apps created in the team can use the AI integration.
  • Org-wide AI integrations can be used by any team.

Apps

  • Only org/team admins can create apps in the org/team respectively.
  • Org-wide apps can be used by any org member.
  • Team apps can only be used by the team's members or org admins.

Default configuration

You can skip this section if you are happy with the default values. Advisable to read and change the values if you are deploying on a server.

Backend

.env

.env is used as env_file in docker-compose.yml to provide environment variables. If you update the database values (e.g. credentials), make sure to update the SQL init script.

AIRSTRIP_JWT_PUBLIC_JWK and AIRSTRIP_JWT_PRIVATE_JWK

When building the Docker image, a pair of public/private key is generated inside the image. They are used to sign JWT tokens. You can use another pair of keys by setting the environment variables AIRSTRIP_JWT_PUBLIC_JWK and AIRSTRIP_JWT_PRIVATE_JWK to your keys' file paths.

AIRSTRIP_SMTP_HOST, AIRSTRIP_SMTP_PORT, AIRSTRIP_SMTP_USER, AIRSTRIP_SMTP_PASSWORD, and AIRSTRIP_EMAIL_SENDER

These values are for sending emails. These are left blank by default. Without these values, email functionality is disabled. Currently, email functionality is only used for sending a password reset link and organization invite link.

AIRSTRIP_INFISICAL*

Update these values to store and use encryption key (for encrypting your API keys) in Infisical.

AIRSTRIP_USE_INFISICAL_FOR_ENCKEY=true

AIRSTRIP_INFISICAL_API_URL=
AIRSTRIP_INFISICAL_CLIENT_ID=
AIRSTRIP_INFISICAL_CLIENT_SECRET=
AIRSTRIP_INFISICAL_PROJECT_ID=
AIRSTRIP_INFISICAL_SECRET_NAME=

# defaults to prod
AIRSTRIP_INFISICAL_PROJECT_ENV=
# defaults to /
AIRSTRIP_INFISICAL_SECRET_PATH=
# defaults to shared
AIRSTRIP_INFISICAL_SECRET_TYPE=

Postgres

Database credentials

The credentials are used in the environment variables and SQL init script. They have to be updated together.

Feature requests/Bug reports

Please submit any feature requests or issues in Github issues.

About

Open-source enterprise generative AI platform

https://airstrip.pro

License:Apache License 2.0


Languages

Language:TypeScript 98.9%Language:CSS 0.5%Language:JavaScript 0.3%Language:Dockerfile 0.2%Language:Shell 0.0%