Nginstal free-code, agen koding AI gratis kanggo terminalmu
free-code maca proyek anjeun, ngaropéa berkas kalayan diff anu anjeun satuju, ngajalankeun tes anjeun sareng ngalereskeun anu gagal. Sahiji baris masangna dina macOS, Linux atanapi Windows.
curl -fsSL https://free.ai/install.sh | sh
irm https://free.ai/install.ps1 | iex
Ora ana Python, pip utawa hak admin sing dibutuhake. Laksana baris sing padha maneh kanggo ngamutahirkeun.
Free to start: 6,000 tokens a day with no account, 30,000 a day with a confirmed free account.
Cara liya kanggo nginstal
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
NPM mbutuhake Python 3.9 utawa luwih anyar ing mesin.
Nginstal versi tartamtu
# 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
Pikeun ngapaksa hiji cara masang, atur FREE_CODE_INSTALLER kana uv, pipx atawa venv cara anu sami.
Ngontrol manawa wis rampung
free-code --version
Diwiwiti
Bukak terminal ing direktori proyek lan wiwiti sesi. Iki langsung kerja tanpa akun.
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"
Modem aman diaktifkeun sacara piawai: anjeun bakal ningali diff sarta ngasetujukeun unggal-unggal file diédit sarta perintah sateuacan dijalankeun. Sanggeus mimiti, free-code nanya sakali lamun hoyong ngirim laporan cacad anu anonim. Jawaban piawai nyaéta henteu.
Log in and API keys
Ngadaptar bakal naekeun jumlah freetime anjeun sapopoé sarta ngamungkinkeun anjeun ngagunakeun model anu dibayar tina saldo token anjeun. Peramban anjeun bakal dibuka di Free.ai, anjeun bakal ngetok Satuju, sarta CLI bakal nampi konci sacara otomatis.
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
Sampeyan uga bisa nyipta kunci dhewe ing akun sampeyan lan atur, sing becik kanggo pamilik lan CI:
free-code config set token sk-free-...
# or, for one shell or a CI job
export FREE_CODE_TOKEN=sk-free-...
Gunake kunci penyedia dhewe
free-code ogé bisa dianggo ku konci OpenAI, Anthropic, Google atanapi OpenRouter anjeun sorangan. Permintaan teras kaasup ka panyadia éta ku konci anjeun.
free-code config set provider anthropic
free-code config set api_key sk-ant-...
Pilih model
free-code nyarankeun unggal model Free.ai nyadiakeun, model tingkat bébas mimiti. Free model tingkat biaya teu tokens dina allowance poéan anjeun; model dibayar difaktur dina 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
Ing ngisor iki minangka tabel/klasifikasi saka jinis-jinis tanduran. Ngelakoni kabeh model
Perintah umum
| Perintah | Apa sing ditindakake |
|---|---|
free-code | Mulang sesi interaktif ing direktori iki |
free-code -c | Lanjutkan sesi terakhir untuk proyek ini |
free-code ask "..." | Takon pitakonan babagan basis kode |
free-code run "..." | Nggawe siji tugas encoding |
free-code -p "..." | Cetak jawaban lan metu, kanggo skrip lan CI |
free-code sessions | Nyatakan sesi sing disimpan sing bisa dilanjutake |
free-code tools | Papar piranti sing bisa digunakaké agen lan sing butuh persetujuan |
free-code cloud "..." --repo URL | Laksana tugas ing awan Free.ai lan entuk laporan |
free-code tasks | Nyatakan tugas awan anyarmu |
free-code rc | Nonton lan ngaktifake sesi saka aplikasi Free.ai |
free-code mcp add | Sambung karo pelayan MCP |
free-code update | Ndhuwurke menyang versi anyar |
free-code config | Papar pangaturanmu |
Di luar ngaédit file jeung ngajalankeun arahan, agén bisa ngahasilkeun gambar, basa, musik, jeung video kana proyek anjeun, transcribe audio, maca teks ti screenshots jeung PDF, milarian web kalawan citations, sarta ngawaler file locale.
Ngajalajah lan mbusak
free-code update upgrades liwat apa wae sing nginstalake. Kanggo mbusak, gunakake piranti sing padha:
free-code update
uv tool uninstall freeai-code
pipx uninstall freeai-code
pip uninstall freeai-code
npm uninstall -g freeai-code
Upami panyetel nyiptakeun lingkunganna sorangan, hapus folder.free-code dina direktori imah anjeun sarta file free-code dina.local/bin. Pangaturan anjeun sarta sesi anu disimpan ogé aya dina.free-code.
Талап
free-code: perintah ora ditemokake
Folder pemasangan durung ana ing PATH sampeyan. Ing Windows, buka terminal anyar. Ing macOS utawa Linux, tambahake menyang profil shell sampeyan lan buka terminal anyar:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc
Jumlah limit anonim gratis kanggo dina iki wis dibutuhake
Ngajalankeun free-code login pikeun ngadaptarkeun diri sareng kéngingkeun panghasilan sadidinten anu langkung ageung tina akun gratis, atanapi tambahkeun token pikeun nganggo modél anu dibayar. Lihat rega
Pemasangan gagal muat turun uv
Beberapa jaringan menghalangi astral.sh. Pasang nganggo pipx atanapi pip, atanapi atur FREE_CODE_INSTALLER=venv pikeun nganggo Python 3.9 atanapi langkung anyar.
python3 -m venv gagal ing Debian utawa Ubuntu
Nginstal paket python3-venv nganggo apt, banjur lakuake baris nginstal maneh.
Tetep mati? Tipe / feedback ing free-code, utawa mbukak masalah ing GitHub. GitHub issues
FAQ
Miwiti ngakode nganggo AI ing terminalmu
curl -fsSL https://free.ai/install.sh | sh