forked from hyperfy-xyz/hyperfy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (46 loc) · 1.62 KB
/
.env.example
File metadata and controls
60 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# The world folder to run
WORLD=world
# The port the server runs on
PORT=3000
# The secret the server uses to create/parse json web tokens
JWT_SECRET=hyper
# The code used to become admin in the world (type /admin <code> in chat)
# If left blank, everyone is an admin!
ADMIN_CODE=
# How often the world saves (seconds)
# Can be set to 0 to disable saving
SAVE_INTERVAL=60
# Whether players should collide with other players
PUBLIC_PLAYER_COLLISION=false
# The maximum upload file size for models etc (mb)
PUBLIC_MAX_UPLOAD_SIZE=12
# The public web socket url the client connects to
PUBLIC_WS_URL=ws://localhost:3000/ws
# The public url used by clients to access api (eg upload assets)
PUBLIC_API_URL=http://localhost:3000/api
# How assets are stored, fetched and uploaded (local or s3)
ASSETS=local
ASSETS_BASE_URL=http://localhost:3000/assets
ASSETS_S3_URI=
# By default world data is stored in a local sqlite database in the world folder
# Optionally set this to a postgres uri to store remotely, eg `postgres://username:password@host:port/database`
DB_URI=local
DB_SCHEMA=
# Whether the server should do a cleanup of unused blueprints and assets before launching
CLEAN=true
# LiveKit (voice chat)
LIVEKIT_WS_URL=
LIVEKIT_API_KEY=
LIVEKIT_API_SECRET=
##
# AI
# --
# AI_PROVIDER: openai, anthropic, xai, google
# AI_MODEL: claude-opus-4-1-20250805, claude-sonnet-4-20250514, gpt-5, gpt-5-mini, gpt-5-nano, grok-4-0709, gemini-2.5-pro, gemini-2.5-flash
# AI_EFFORT: minimal, low, medium, high (OpenAI only)
# AI_API_KEY: The api key for the selected provider
##
AI_PROVIDER=anthropic
AI_MODEL=claude-sonnet-4-20250514
AI_EFFORT=medium
AI_API_KEY=