Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 35 additions & 11 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
# Docker build context filter. Patterns match from the repository root;
# `**/` makes one match at any depth.

# VCS, caches and build output. The Dockerfile builds the browser UI and the
# npm trees itself, for the image's own platform: a node_modules or dist/
# copied from a Windows or macOS checkout would carry the wrong native
# binaries, so none may enter the context.
.git
.gitignore
__pycache__
*.py[cod]
*.log
.github
**/__pycache__
**/*.py[cod]
**/*.log
**/node_modules
**/dist
**/build
**/*.egg-info
.venv
venv
node_modules
chroma_db
__pypackages__
.cache
.mypy_cache
.pytype
build
dist
.pytest_cache
.ruff_cache
.DS_Store
.github
install.sh
install.bat
*.egg-info
OmniParser_CraftOS
debug_images
workspace

# Not needed to run CraftBot: the Rust installer (its target/ directory alone
# can be gigabytes) and the test suite.
launcher
tests

# ---------------------------------------------------------------------------
# Secrets and per-machine runtime state — never belongs in an image.
# Secrets and per-machine runtime state: never belongs in an image.
#
# `COPY . .` takes whatever is in the build context, i.e. a developer's working
# tree, and the release workflow pushes the resulting image to a public
Expand All @@ -33,6 +46,10 @@ workspace
# exactly once, on someone's laptop. (Same failure as the old PyInstaller spec's
# blanket app/data entry, which shipped 1.1 GB of one machine's memory index
# and databases.) Keep this list in step with .gitignore.
#
# The image still gets every shipped default: app/config/<name>.default.json
# and app/data/agent_file_system_template/ are copied into the /data volume on
# first start (app/state_sync.py).
# ---------------------------------------------------------------------------

# Secrets and credentials
Expand Down Expand Up @@ -60,6 +77,10 @@ chroma_db_memory
.craftbot
**/.craftbot
.craftbot-managed
.craftbot-image-id
.agent-ready
craftbot.pid
ui.json
logs
**/logs
**/agent_logs.txt
Expand All @@ -71,8 +92,11 @@ logs
**/onboarding_config.json
**/gui/config
**/.whatsapp_web_sessions
# ...except the shipped templates the agent's files are created from.
!app/data/agent_file_system_template/USER.md
!app/data/agent_file_system_template/CONVERSATION_HISTORY.md

# Provisioned runtimes and build caches — re-fetched inside the image
# Provisioned runtimes and build caches: re-fetched inside the image
runtime
wheelhouse
downloads-cache
Expand Down
81 changes: 38 additions & 43 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,43 +1,38 @@
# CraftBot - Environment Configuration
# You need at least ONE API key from a supported LLM provider.

# --- LLM Provider API Keys (set at least one) ---
OPENAI_API_KEY=
GOOGLE_API_KEY=
ANTHROPIC_API_KEY=
BYTEPLUS_API_KEY=

# --- Optional: Remote Ollama server URL ---
REMOTE_MODEL_URL=
# --- Optional: OmniParser Gradio server URL ---
# Leave empty to use default http://localhost:7861
# Or set to a remote/cloud Gradio URL
OMNIPARSER_BASE_URL=

# Google (/google login)
GOOGLE_CLIENT_ID=
# Optional Figma OAuth app credentials. PAT connection works without these.
# Public apps need Figma approval; do not commit real client secrets.
FIGMA_CLIENT_ID=
FIGMA_CLIENT_SECRET=
GOOGLE_CLIENT_SECRET=

# LinkedIn (/linkedin login)
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=

# Slack (/slack invite)
SLACK_SHARED_CLIENT_ID=
SLACK_SHARED_CLIENT_SECRET=

# Telegram (/telegram invite)
TELEGRAM_SHARED_BOT_TOKEN=
TELEGRAM_SHARED_BOT_USERNAME=

# Telegram (telegram user connect)
TELEGRAM_API_ID=
TELEGRAM_API_HASH=

# Notion (/notion invite)
NOTION_SHARED_CLIENT_ID=
NOTION_SHARED_CLIENT_SECRET=
# CraftBot: optional environment variables
#
# API keys are NOT read from this file or from any .env file. Enter your LLM
# API key in the browser onboarding on first start (change it later under
# Settings). CraftBot stores it in app/config/settings.json in its data folder.
#
# Everything below is optional and read from the process environment:
# - Docker Compose: copy this file to .env next to docker-compose.yml.
# Compose reads .env and passes these values into the container.
# - Source install: set them in the terminal before running craftbot.py
# (macOS/Linux: export NAME=value, Windows PowerShell: $env:NAME = "value").
# Leave a value empty to keep the default.

# --- Proxy ------------------------------------------------------------------
# Used by every download (Python, pip, npm, Node.js) and by CraftBot itself.
# Keep localhost in NO_PROXY so CraftBot can reach its own servers.
HTTPS_PROXY=
HTTP_PROXY=
NO_PROXY=localhost,127.0.0.1

# --- Mirrors ----------------------------------------------------------------
# Python packages, e.g. https://pypi.tuna.tsinghua.edu.cn/simple
PIP_INDEX_URL=
# npm packages, e.g. https://registry.npmmirror.com
npm_config_registry=
# Embedding model download, e.g. https://hf-mirror.com
HF_ENDPOINT=
# URL rewrites for CraftBot's runtime downloads (Python, Node.js, PocketBase,
# embedding model): semicolon-separated prefix=replacement pairs. Downloads
# are still checked against their pinned SHA-256 checksums.
# e.g. https://nodejs.org/dist/=https://npmmirror.com/mirrors/node/
CRAFTBOT_MIRRORS=

# --- Location (source install only; the Docker image sets both itself) -------
# Keep all CraftBot data and downloaded runtimes in this folder instead.
# CRAFTBOT_HOME=/path/to/craftbot-data
# Interface the UI and backend listen on (default: localhost only).
# CRAFTBOT_BIND_HOST=0.0.0.0
69 changes: 0 additions & 69 deletions .github/workflows/agent-app.yml

This file was deleted.

Loading
Loading