lobe-chat
/
.env.example
195 строк · 5.3 Кб
1# add a access code to lock your lobe-chat application, you can set a long password to avoid leaking. If this value contains a comma, it is a password array.
2# ACCESS_CODE=lobe66
3
4# Specify your API Key selection method, currently supporting `random` and `turn`.
5# API_KEY_SELECT_MODE=random
6
7
8########################################
9######## Model Provider Service ########
10########################################
11
12### OpenAI ###
13
14# you openai api key
15OPENAI_API_KEY=sk-xxxxxxxxx
16
17# use a proxy to connect to the OpenAI API
18# OPENAI_PROXY_URL=https://api.openai.com/v1
19
20# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106
21# OPENAI_MODEL_LIST=gpt-3.5-turbo
22
23
24### Azure OpenAI ###
25
26# you can learn azure OpenAI Service on https://learn.microsoft.com/en-us/azure/ai-services/openai/overview
27# use Azure OpenAI Service by uncomment the following line
28
29# The API key you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
30# AZURE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
31
32# The endpoint you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
33# AZURE_ENDPOINT=https://docs-test-001.openai.azure.com
34
35# Azure's API version, follows the YYYY-MM-DD format
36# AZURE_API_VERSION=2024-06-01
37
38
39### Anthropic Service ####
40
41# ANTHROPIC_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
42
43# use a proxy to connect to the Anthropic API
44# ANTHROPIC_PROXY_URL=https://api.anthropic.com
45
46
47### Google AI ####
48
49# GOOGLE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
50
51
52### AWS Bedrock ###
53
54# AWS_REGION=us-east-1
55# AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxx
56# AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
57
58
59### Ollama AI ####
60
61# You can use ollama to get and run LLM locally, learn more about it via https://github.com/ollama/ollama
62
63# The local/remote ollama service url
64# OLLAMA_PROXY_URL=http://127.0.0.1:11434
65
66# OLLAMA_MODEL_LIST=your_ollama_model_names
67
68
69### OpenRouter Service ###
70
71# OPENROUTER_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
72# OPENROUTER_MODEL_LIST=model1,model2,model3
73
74
75### Mistral AI ###
76
77# MISTRAL_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
78
79### Perplexity Service ###
80
81# PERPLEXITY_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
82
83### Groq Service ####
84
85# GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
86
87#### 01.AI Service ####
88
89# ZEROONE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
90
91### TogetherAI Service ###
92
93# TOGETHERAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
94
95### ZhiPu AI ###
96
97# ZHIPU_API_KEY=xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxx
98
99### Moonshot AI ####
100
101# MOONSHOT_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
102
103### Minimax AI ####
104
105# MINIMAX_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106
107### DeepSeek AI ####
108
109# DEEPSEEK_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
110
111### Qwen AI ####
112
113# QWEN_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
114
115### SiliconCloud AI ####
116
117# SILICONCLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
118
119########################################
120############ Market Service ############
121########################################
122
123# The LobeChat agents market index url
124# AGENTS_INDEX_URL=https://chat-agents.lobehub.com
125
126########################################
127############ Plugin Service ############
128########################################
129
130# The LobeChat plugins store index url
131# PLUGINS_INDEX_URL=https://chat-plugins.lobehub.com
132
133# set the plugin settings
134# the format is `plugin-identifier:key1=value1;key2=value2`, multiple settings fields are separated by semicolons `;`, multiple plugin settings are separated by commas `,`.
135# PLUGIN_SETTINGS=search-engine:SERPAPI_API_KEY=xxxxx
136
137
138########################################
139##### S3 Object Storage Service ########
140########################################
141
142# S3 keys
143#S3_ACCESS_KEY_ID=9998d6757e276cf9f1edbd325b7083a6
144#S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f497ac2
145
146# Bucket name
147#S3_BUCKET=lobechat
148
149# Bucket request endpoint
150#S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
151
152# Public access domain for the bucket
153#S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com
154
155# Bucket region, such as us-west-1, generally not needed to add
156# but some service providers may require configuration
157# S3_REGION=us-west-1
158
159
160########################################
161############ Auth Service ##############
162########################################
163
164
165# Clerk related configurations
166
167# Clerk public key and secret key
168#NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxxxxxxxx
169#CLERK_SECRET_KEY=sk_live_xxxxxxxxxxxxxxxxxxxxxx
170
171# you need to config the clerk webhook secret key if you want to use the clerk with database
172#CLERK_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxx
173
174
175# NextAuth related configurations
176# NEXT_AUTH_SECRET=
177
178# Auth0 configurations
179# AUTH0_CLIENT_ID=
180# AUTH0_CLIENT_SECRET=
181# AUTH0_ISSUER=https://your-domain.auth0.com
182
183########################################
184########## Server Database #############
185########################################
186
187# Specify the service mode as server if you want to use the server database
188#NEXT_PUBLIC_SERVICE_MODE=server
189
190# Postgres database URL
191#DATABASE_URL=postgres://username:password@host:port/database
192
193# use `openssl rand -base64 32` to generate a key for the encryption of the database
194# we use this key to encrypt the user api key
195#KEY_VAULTS_SECRET=xxxxx/xxxxxxxxxxxxxx=
196