kenya free-code, motsamaisi oa ho ngola AI bakeng sa terminal ea hau
free-code e bala projeke ea hau, e hlophisa lifaele ka diff eo u e khethileng, e sebetsana le liteko tsa hau le ho lokisa seo se sa khonehang. Lebokose leng le e kenya ho macOS, Linux kapa Windows.
curl -fsSL https://free.ai/install.sh | sh
irm https://free.ai/install.ps1 | iex
Ha ho hlokahale litokelo tsa Python, pip kapa admin pele. Etela lebokose leng ho ntlafatsa.
Free ho qala: 6,000 tokens letsatsi le leng le le leng le le nang le akhaonto, 30,000 letsatsi le le leng le le lengolo tsoibila le tiisitsoeng mahala.
Litsela tse ling tsa ho kenya
The one-line installer uses uv, then pipx, then a private Python environment, whichever works first. If you already use one of these tools, install the freeai-code package directly:
uv tool install freeai-code
pipx install freeai-code
pip install freeai-code
npm install -g freeai-code
Lipakete tsa npm li hloka Python 3.9 kapa tse ncha ho mochine.
kenya mofuta o itseng
# macOS / Linux
curl -fsSL https://free.ai/install.sh | FREE_CODE_VERSION=<version> sh
# Windows (PowerShell)
$env:FREE_CODE_VERSION = "<version>"; irm https://free.ai/install.ps1 | iex
Ho etsa hore ho be le tsela e le 'ngoe ea ho kenya, beha FREE_CODE_INSTALLER ho uv, pipx kapa venv ka tsela e ts'oanang.
Check that it worked
free-code --version
Ho kenya ka ho qetela
Bula terminal ka lifaele tsa hau tsa projeke'me u qala setsi. E sebetsa kapele ntle le ak'haonte.
cd your-project
free-code
# Or one task at a time
free-code ask "How does the auth system work?"
free-code run "Add unit tests for the User model"
Mofuta o sireletsehileng o hokahane ka ho tloaelehang: o bona diff mme o lumellana le ho fetola faele le molaoli peletsoa. Ha e qala, free-code e u botsa ka nako e le 'ngoe hore na u batla ho romella linyeoe tsa ho senyeha ka ho sa tsejoeng. Bopaki bo tloaelehang ke ha ho joalo.
Ho kena le li-keys tsa API
Ho kena ho eketsa likhetho tsa hau tsa letsatsi le letsatsi'me ho u lumella ho sebelisa li-models tse lefelloeng ho tloha ho li-token tsa hau. Moemeli oa hau o bula ho Free.ai, o tobetsa ho amohela, mme CLI e fumana konopo ka ho toba.
free-code login # opens your browser
free-code login --no-browser # over SSH: approve from any device with a short code
free-code login --manual # paste a key or choose your own provider
free-code logout # forget the key on this machine
U ka etsa lebokose la ho kenya ka ho khetheha ka akhaonteng ea hau ebe u e beha, e leng molemo bakeng sa li-server le CI:
free-code config set token sk-free-...
# or, for one shell or a CI job
export FREE_CODE_TOKEN=sk-free-...
Senya konopo ea hau ea ho fana ka litšebeletso
free-code e sebetsa le lebokose la hau la OpenAI, Anthropic, Google kapa OpenRouter. Lipotso li ea ho mofani oa litšebeletso ka lebokoseng la hau.
free-code config set provider anthropic
free-code config set api_key sk-ant-...
Khetha mofuta
free-code e bonts'a li-model tse fapaneng Free.ai e fanang ka tsona, li-model tsa tier tse mahala pele. Li-model tsa tier tse mahala ha li na tokens kahare ho li-token tsa hau tsa letsatsi; li-model tse lefa li lefa ka tokens.
free-code models # chat models, free tier first
free-code models --free # only models that cost no tokens
free-code models --type image # image, video, tts, stt, ocr, music ...
free-code config set model <id> # default model for new sessions
Ka hare ho setsi, tobetsa /model ho fetola. Bala li-models tsohle
Litaelo tse tloaelehileng
| Litaelo | Seo e se etsang |
|---|---|
free-code | Qala seboka se ikhethileng ka karolong ena ea lebokose |
free-code -c | Qhobosha seboka sa morao-rao sa projeke ena |
free-code ask "..." | Ipotsa potso e le 'ngoe ka codebase |
free-code run "..." | Etsoa mosebetsi o mong oa ho ngola |
free-code -p "..." | Tlatsa karabo ebe u tsoa, bakeng sa li-scripts le CI |
free-code sessions | Litšoantšo tsa sehlooho se bolokiloeng |
free-code tools | Bontša lisebelisoa tseo motsamaisi a ka li sebelisang le tseo a hlokang ho li lumellana |
free-code cloud "..." --repo URL | Etela mosebetsi ka Free.ai cloud'me u fumane tlhaloso |
free-code tasks | Litšoantšo tsa hau tsa moraorao |
free-code rc | Tseba le ho tsamaisa seboka ho tloha ho Free.ai app |
free-code mcp add | Kopanya le setsi sa MCP |
free-code update | Ntšetsa pele ho tsoa e ncha |
free-code config | Bontša likhetho tsa hau |
Ho fapana le ho hlophisa lifaele le ho kenya litaelo, motsamaisi o ka etsa litšoantšo, puo, molumo le video ho projeke ea hau, ho ngola molumo, ho bala mongolo ho tloha skrineng le PDF, ho batla marang-rang le ho ngola lifaele tsa locale.
Litaelo tsohle le likhetho li ka fumanoa ho README ho GitHub
Ho nchafatsa le ho tlosa
free-code update upgrades ka ho kenya seo. Ho se tlosa, sebelisa sesebelisoa se tšoanang:
free-code update
uv tool uninstall freeai-code
pipx uninstall freeai-code
pip uninstall freeai-code
npm uninstall -g freeai-code
Haeba motsamaisi oa ho kenya a thehile tikoloho ea hae, tlosa foldara ea.free-code ka lifaele tsa hau tsa ka tlung le faele ea free-code ka.local/bin. Litlhophiso tsa hau le litokomane tse bolokiloeng li lula.free-code.
Ho lokisa mathata
free-code: kopo ea ho kenya ha e fumanehe
Likarolo tse kenya li se li le PATH ea hau. Ka Windows, bula terminal e ncha. Ka macOS kapa Linux, eketsa ho profile ea hau ea shell ebe o bula terminal e ncha:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc
Lipheo tsa mahala tsa ho se tsejoe tsa letsatsi leng li sebelisoa
Ea ho kena ka kotloloho ho kena le ho fumana lichelete tse ngata tsa letsatsi le letsatsi tsa ak'haonte e mahala, kapa eketsa li-token ho sebelisa li-models tse lefelloeng. Bona theko
Motsamaisi oa ho kenya ha a ka a kenya uv
Li-network tse ling li thibela astral.sh. Kea kenya ka pipx kapa pip, kapa ke beha FREE_CODE_INSTALLER=venv ho sebelisa Python ea hau ea 3.9 kapa e ncha.
python3 -m venv e sa khone ho Debian kapa Ubuntu
Kenye pakete ea python3-venv ka apt, ebe u phethela lebokose la ho kenya hape.
Ho ntse ho le thata? Type /feedback ka har'a free-code, kapa bula bothata ka GitHub. GitHub issues
Lipotso tse ka etsahalang
Qala ho ngola li-code ka AI terminaleng ea hau
curl -fsSL https://free.ai/install.sh | sh
Windows le likhetho tse ling tsa ho kenya · Ka Free.ai Coder