1# script install
2curl -fsSL https://huggingface.co/chenbhao/codev/raw/main/install.sh | bash
3
4# source install
5git clone https://huggingface.co/chenbhao/codev && cd codev && bun install && bun run build && codev
6
7# if want global use bin file
8# cp dist/codev ~/.local/bin
9ln -sf dist/codev ~/.local/bin/codev
10
11# then can use Codev in everywhere after `/login`
1curl --proto '=https' --tlsv1.2 -sSf \
2 https://raw.githubusercontent.com/huggingface/xet-core/refs/heads/main/git_xet/install.sh | sh
3git xet install
1# Maximum_Context_Window = min(CLAUDE_CODE_MAX_CONTEXT_TOKENS, CLAUDE_CODE_AUTO_COMPACT_WINDOW) - 20000
2# set 200k env in ~/.claude/settings.json or terminal
3# the 20k is used to compact as buffer band
4# set tool_search env
5# set agentteam in tmux
6{
7 "env": {
8 "USER_TYPE": "ant",
9 "CLAUDE_CODE_MAX_CONTEXT_TOKENS": "200000",
10 "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "200000",
11 "ENABLE_TOOL_SEARCH": "true",
12 "TAVILY_API_KEY": "",
13 # "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "0", default 1
14 "teammateMode": "tmux", # or in-process
15 "groqApiKey": "gsk_" # https://console.groq.com
16 # map locationtool
17 "AMAP_API_KEY": "b_",
18 "GOOGLE_MAPS_API_KEY": "AI_"
19 }
20
21 # set auto-dream config
22 "autoMemoryEnabled": true,
23 "autoDreamEnabled": true,
24
25 # stt-tts support zh-CN
26 # TW girl voice
27 "voiceLanguage": "zh-TW",
28 "voiceTTSVoice": "zh-TW-HsiaoChenNeural"
29
30 # CN girl voice
31 "voiceLanguage": "zh-CN",
32 "voiceTTSVoice": "zh-CN-XiaoxiaoNeural"
33}
1# Config SearXNG
2# 1. docker configuration
3# local config search engine - searxng in archlinux
4# make sure have install docker and docker-compose
5sudo pacman -S docker-compose && docker
6docker --version && docker compose version
7sudo usermod -aG docker $USER
8
9# make sure open pc and now start docker daemon
10sudo systemctl enable --now docker
11
12# 2. docker-compose pull
13# use VersperSearch a pre-build docker config in https://github.com/chenbhao/VersperSearch
14# or install searxng in docker-compose by yourself
15curl -fsSL \
16-O https://raw.githubusercontent.com/searxng/searxng/master/container/docker-compose.yml \
17-O https://raw.githubusercontent.com/searxng/searxng/master/container/.env.example
18
19# add json source in formats behind html - jsonl in 87 lines
20cd searxng/core-config/ && sudo nvim settings.yml
21
22# start searxng engine
23docker compose up -d
24
25# 3. check search feature
26# check in every browser
27firefox http://localhost:8080
1# test
2HTTP_PROXY=http://127.0.0.1:8888 HTTPS_PROXY=http://127.0.0.1:8888 <commands>
3mitmproxy -p 8888
1# /voice
2"voiceTTSVoice": "zh-TW-HsiaoChenNeural",
3"voiceLanguage": "zh-TW",
4
5# /imageshow
6sudo pacman -S timg
7
8# node-edge-tts
9# local whisper-stt
10uv venv
11uv pip install faster-whisper edge-tts voxcpm
12
13hf download Systran/faster-whisper-base \
14 --local-dir ~/.cache/huggingface/hub/models--Systran--faster-whisper-base