mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
77 lines
1.8 KiB
HTML
77 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Installation | Kit</title>
|
|
<meta name="description" content="Install Kit using npm, bun, pnpm, Go, or build from source.">
|
|
<link rel="canonical" href="/installation">
|
|
<link rel="stylesheet" href="/assets/index-Di_r5hA0.css">
|
|
<script type="module" src="/assets/index-oiFiQxsS.js"></script>
|
|
<script type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"Installation","description":"Install Kit using npm, bun, pnpm, Go, or build from source.","url":"https://go-kit.dev/installation","isPartOf":{"@type":"WebSite","name":"Kit","url":"https://go-kit.dev"}}</script>
|
|
</head>
|
|
<body>
|
|
<div id="tome-root"></div>
|
|
<div data-pagefind-body style="display:none"><h1>Installation</h1>
|
|
# Installation
|
|
|
|
## Using npm / bun / pnpm
|
|
|
|
```bash
|
|
npm install -g @mark3labs/kit
|
|
```
|
|
|
|
```bash
|
|
bun install -g @mark3labs/kit
|
|
```
|
|
|
|
```bash
|
|
pnpm install -g @mark3labs/kit
|
|
```
|
|
|
|
## Using Go
|
|
|
|
```bash
|
|
go install github.com/mark3labs/kit/cmd/kit@latest
|
|
```
|
|
|
|
## Building from source
|
|
|
|
```bash
|
|
git clone https://github.com/mark3labs/kit.git
|
|
cd kit
|
|
go build -o kit ./cmd/kit
|
|
```
|
|
|
|
## Verifying the installation
|
|
|
|
After installing, verify Kit is available:
|
|
|
|
```bash
|
|
kit --help
|
|
```
|
|
|
|
## Setting up a provider
|
|
|
|
Kit needs at least one LLM provider configured. Set an API key for your preferred provider:
|
|
|
|
```bash
|
|
# Anthropic (default provider)
|
|
export ANTHROPIC_API_KEY="sk-..."
|
|
|
|
# OpenAI
|
|
export OPENAI_API_KEY="sk-..."
|
|
|
|
# Google Gemini
|
|
export GOOGLE_API_KEY="..."
|
|
```
|
|
|
|
For OAuth-enabled providers like Anthropic, you can also authenticate interactively:
|
|
|
|
```bash
|
|
kit auth login anthropic
|
|
```
|
|
|
|
See [Providers](/providers) for the full list of supported providers and their configuration.</div>
|
|
</body>
|
|
</html> |