터미널에서 동작Lives in the terminal
무거운 IDE 없이 명령창 하나로 끝. 가볍고 빠르며 어떤 OS에서도 잘 돌아갑니다.No heavy IDE — just one terminal. Light, fast, runs anywhere.
2026 한/영 입문 가이드 · 완전 무료로 시작2026 KO/EN beginner guide · start free
설치부터 무료 모델 연결, 명령어와 단축키, 에이전트까지. 그리고 Claude Code·Codex·Antigravity 가격 비교와 Hermes Agent까지 — 한 페이지에. From install to free models, commands, and agents — plus a Claude Code · Codex · Antigravity price comparison and Hermes Agent, all on one page.
좋아요. 계획은 이렇습니다 Sure. Here's the plan
01 · 소개Intro
OpenCode는 터미널 안에서 동작하는 오픈소스 AI 코딩 에이전트예요. “이 기능 추가해줘”처럼 말하면 코드베이스를 읽고 직접 파일을 고쳐줍니다. 특정 회사 모델에 묶이지 않아 무료·로컬·유료 모델을 자유롭게 바꿔 쓰는 게 매력이에요. OpenCode is an open-source AI coding agent that runs in your terminal. Tell it “add this feature” and it reads your codebase and edits files for you. It isn't tied to one vendor, so you can freely swap between free, local, and paid models.
무거운 IDE 없이 명령창 하나로 끝. 가볍고 빠르며 어떤 OS에서도 잘 돌아갑니다.No heavy IDE — just one terminal. Light, fast, runs anywhere.
Claude, GPT, Gemini, 로컬 Ollama까지. 한 곳에 갇히지 않고 모델을 갈아끼워요.Claude, GPT, Gemini, even local Ollama — swap models anytime.
OpenCode Zen 무료 모델, OpenRouter 무료 모델, 또는 로컬 모델로 $0부터.Start at $0 with OpenCode Zen free models, OpenRouter free models, or local models.
분석만 하는 Plan과 실제로 고치는 Build를 Tab 하나로 전환.Switch between read-only Plan and hands-on Build with one Tab.
OpenCode는 SST 팀의 오픈소스 프로젝트예요. 이 가이드는 비공식 입문서이며, 최신 정보는 공식 문서도 함께 확인하세요.OpenCode is an open-source project by the SST team. This is an unofficial guide — always cross-check the official docs.
02 · 설치Install
운영체제에 맞는 방법 하나만 고르세요. 윈도우는 Scoop 또는 npm을 추천해요.Pick one method for your OS. On Windows, Scoop or npm is easiest.
Scoop이 가장 깔끔해요(없으면 npm).Scoop is cleanest (or npm).
# Scoop 으로 설치 (권장)# Install via Scoop (recommended)
scoop install opencode
# 또는 Chocolatey 로# or Chocolatey
choco install opencode
# 또는 Node.js(npm)가 있다면# or, if you have Node.js (npm)
npm install -g opencode-ai
한 줄 설치 스크립트가 가장 간단합니다.The one-line installer is simplest.
# 공식 설치 스크립트 (가장 쉬움)# Official installer (easiest)
curl -fsSL https://opencode.ai/install | bash
# 또는 Homebrew# or Homebrew
brew install anomalyco/tap/opencode
# 또는 npm# or npm
npm install -g opencode-ai
# 버전이 출력되면 성공!# If a version prints, you're set!
opencode --version
# 나중에 업데이트# update later
opencode upgrade
· 안드로이드 (Termux)Android (Termux)
안드로이드 기기에서도 쓸 수 있어요. 다만 그냥은 안 됩니다. OpenCode 실행 파일이 Termux 환경에 안 맞거든요. 그래서 proot-distro로 기기 안에 진짜 리눅스(우분투)를 깔고 그 안에서 설치합니다. 루팅은 필요 없어요. It works on Android devices — but not out of the box. OpenCode's binary doesn't match the Termux environment. So we use proot-distro to install a real Linux (Ubuntu) on the device and install there. No root needed.
Termux는 안드로이드 전용 환경이라 OpenCode의 리눅스용 바이너리가 인터프리터·PIE·glibc가 맞지 않아 그대로는 실행되지 않아요. proot-distro가 기기 안에 완전한 리눅스를 만들어 이 문제를 해결합니다.Termux is an Android-only environment, so OpenCode's Linux binary fails (wrong interpreter, non-PIE, glibc mismatch). proot-distro spins up a full Linux filesystem on the device to fix that.
기기 안에 리눅스 배포판을 설치·실행하게 해주는 도구예요.The tool that installs and runs a Linux distro on the device.
pkg install proot-distro -y
우분투(약 200MB)를 받아 설치하고 그 안으로 들어갑니다.Download Ubuntu (~200MB), install it, and log in.
# 우분투 설치 (처음 한 번만)# install Ubuntu (once)
proot-distro install ubuntu
# 우분투 안으로 로그인# log into Ubuntu
proot-distro login ubuntu
로그인하면 프롬프트가 바뀌어요. 여기서부터는 우분투 안에서 입력합니다.The prompt changes after login — from here you type inside Ubuntu.
OpenCode는 npm으로 설치하니 Node.js가 필요해요. 우분투 안에서 LTS를 깝니다.OpenCode installs via npm, so you need Node.js. Install the LTS inside Ubuntu.
# 기본 도구# basics
apt update && apt upgrade -y
apt install -y curl git
# Node.js LTS 설치# install Node.js LTS
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt install -y nodejs
이제 평소처럼 설치·실행하면 끝! 이후는 03 · 첫 실행부터 그대로.Now install and run as usual! From here, follow 03 · First run.
npm install -g opencode-ai
opencode
한 번 설치했으면 다음엔 Termux에서 proot-distro login ubuntu 한 줄로 들어가 opencode 실행.Once installed, just run proot-distro login ubuntu in Termux and then opencode.
기기에 따라 화면(TUI)이 멈추는 보고가 있어요. ① opencode upgrade ② 우분투 대신 proot-distro install debian ③ 화면이 좁으면 가로 모드 ④ 급하면 opencode run "..." 비대화형 실행.Some devices report a frozen TUI. Try ① opencode upgrade ② Debian instead: proot-distro install debian ③ landscape mode if the screen is narrow ④ non-interactive opencode run "...".
03 · 첫 실행First run
설치가 끝났으면 작업할 폴더로 가서 opencode 만 입력하면 됩니다.Once installed, go to your project folder and just type opencode.
코드가 있는 폴더 안에서 실행해야 코드를 읽을 수 있어요.Run it inside the folder with your code so it can read the codebase.
cd my-project
opencode
/connectConnect a provider — /connect화면 안에서 /connect 를 입력하면 목록이 떠요. 처음이라면 OpenCode Zen의 무료 모델로 시작하길 추천(04장).Type /connect to see providers. New here? Start with OpenCode Zen free models (ch. 04).
/connect
터미널에서 바로 로그인하려면 opencode auth login 도 같은 역할.opencode auth login does the same from the shell.
/initAnalyze the project — /init/init 는 프로젝트를 훑어 AGENTS.md(에이전트용 메모)를 만들어요. 깃에 커밋해두면 다음에도 똑똑하게 일합니다./init scans the project and writes AGENTS.md (a memo for the agent). Commit it so future runs stay smart.
/init
원하는 걸 자연어로 입력! @ 로 특정 파일을 콕 집어 참조시킬 수 있어요.Type what you want in plain language. Use @ to point at a specific file.
@src/app.js 에 다크 모드 토글 버튼을 추가해줘Add a dark-mode toggle button to @src/app.js
처음엔 Plan 모드로 계획을 먼저 보고, 마음에 들면 Build로 바꿔 실제 수정하는 습관이 안전해요. Tab 키로 전환.Safer habit: review a plan in Plan mode first, then switch to Build to actually edit. Toggle with Tab.
04 · 무료 모델Free models
OpenCode 자체는 공짜예요. 비용은 “어떤 모델을 쓰느냐”에서 갈립니다. 무료로 시작하는 길은 크게 세 가지.OpenCode itself is free. Cost depends on which model you use. There are three ways to start free.
OpenCode 팀이 검증한 모델 모음이에요. 시기에 따라 한시 무료 모델이 있어요. /connect → OpenCode Zen → 키 붙여넣기 → /models 로 선택.A curated set the OpenCode team tests. Some models are free for a limited time. /connect → OpenCode Zen → paste key → pick via /models.
// 무료 모델을 기본값으로// set a free model as default
{
"$schema": "https://opencode.ai/config.json",
"model": "opencode/<free-model>"
}
무료 목록은 자주 바뀌어요. opencode models 또는 /models 로 그때그때 확인하세요.The free list changes often. Check opencode models or /models for what's live now.
OpenRouter 키를 발급받으면 이름 끝에 :free 가 붙은 모델들을 쓸 수 있어요.Grab an OpenRouter key and use any model ending in :free.
# OpenRouter 로그인# log into OpenRouter
opencode auth login
# 연결된 모델 보기# list connected models
opencode models openrouter
인터넷도 API 키도 필요 없어요. 내 컴퓨터에서 Ollama로 돌리면 비용이 완전히 0원(성능 좋은 PC일수록 쾌적).No internet, no API key. Run models locally with Ollama for $0 (smoother on a beefier PC).
// 로컬 Ollama 연결// connect local Ollama
{
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "http://localhost:11434/v1" },
"models": { "qwen2.5-coder": { "name": "Qwen2.5 Coder" } }
}
}
}
/models화면 안에서 검색·선택search & pick in-app“가벼운 질문은 무료 모델, 어려운 작업은 좋은 모델”처럼 F2로 바꿔 쓰면 비용을 크게 아껴요.Use F2 to switch — free model for light asks, a stronger model for hard work — and save a lot.
05 · 명령어Commands
터미널 명령어, 화면 안 슬래시 명령어, 키보드 단축키 세 종류로 조작해요.Three control surfaces: shell commands, in-app slash commands, and keyboard shortcuts.
opencode대화형 화면(TUI) 실행 — 가장 많이 씀launch the interactive TUI — most usedopencode run "..."화면 없이 프롬프트 한 방 (자동화용)one-shot prompt, no UI (automation)opencode auth login제공사 로그인 / API 키 등록log in / add an API keyopencode models사용 가능한 모델 전부 보기list all available modelsopencode agent create커스텀 에이전트 만들기create a custom agentopencode session list지난 세션 목록list past sessionsopencode stats토큰 사용량·비용 통계token usage & cost statsopencode upgrade최신 버전으로 업데이트update to latest/type / in-app/init 분석analyze
/connect 연결connect
/models 모델models
/undo 되돌리기undo
/redo 다시redo
/compact 압축compact
/share 공유share
/help 도움말help
기본 리더 키는 Ctrl+X. “리더 누른 뒤 → 단축키” (예: 새 세션 = Ctrl+X → N).The leader key is Ctrl+X. Press leader, then the key (e.g. new session = Ctrl+X → N).
06 · 에이전트Agents
성격이 다른 두 기본 에이전트가 있어요. Tab 하나로 전환.Two built-in agents with different personalities. Switch with one Tab.
코드를 분석·탐색·계획만 해요. 수정·실행은 먼저 허락을 구합니다. “일단 보고 싶다”면 이걸로.It only analyzes, explores, plans. It asks before editing or running. Great for “let me see first”.
기본 모드. 파일을 실제로 수정하고 명령도 실행하는 “일하는” 에이전트. 계획이 좋으면 이걸로.The default. It actually edits files and runs commands — the “doer”. Switch to it once the plan looks good.
@ 로 부르기Subagents — call with @@general여러 단계 복합 작업 (전체 권한)multi-step work (full access)@explore코드베이스 탐색·분석 (읽기 전용)explore the codebase (read-only)@scout의존성·라이브러리 조사 (읽기 전용)research deps/libraries (read-only)# 대화형으로 생성# create interactively
opencode agent create
# ~/.config/opencode/agents/reviewer.md
---
description: 보안·유지보수 관점 코드 리뷰review code for security & maintainability
mode: subagent
permission:
edit: deny
bash: deny
---
당신은 코드 리뷰어입니다. 보안과 가독성에 집중하세요.You are a code reviewer. Focus on security and readability.
07 · 꿀팁Tips
@ 로 파일 콕 집기Point with @막연한 요청보다 @src/Button.tsx처럼 파일 지정이 훨씬 정확.Naming a file like @src/Button.tsx beats a vague ask.
계획을 먼저 검토하고 Tab으로 Build. 사고 예방 최고의 습관.Review a plan, then Tab to Build. Best habit to avoid mistakes.
AGENTS.md 가꾸기Grow AGENTS.md프로젝트 규칙을 적어두면 매번 설명 안 해도 일관되게 작업.Write project rules once and get consistent results.
이상하면 /undo. 겁내지 말고 시도하세요.Off? /undo. Experiment freely.
/compactLong? /compact긴 세션은 토큰을 많이 먹어요. 압축하면 속도·비용 절약.Long sessions burn tokens. Compacting saves speed and cost.
거대한 한 방보다 작은 단위가 품질·검토 모두 쉬워요.Small steps beat one giant request for quality and review.
· CLI 비교Compare
OpenCode 말고도 터미널 AI 코딩 CLI가 더 있어요. 모델·가격이 다르니 상황에 맞게 고르세요. (모델은 큰 ‘계열’만 적었어요.)Beyond OpenCode there are more terminal AI coding CLIs. Models and pricing differ — pick what fits. (Models shown as broad families only.)
직접 사용한 경험을 토대로 신중하게 선정하였습니다.Selected with care on the basis of direct, hands-on evaluation.
비용 없이 도입할 수 있는 가장 합리적인 선택지입니다.The most cost-effective option for adoption at no charge.
상대적으로 비용 부담이 적은 선택지입니다.A comparatively economical option.
성능 면에서 가장 뛰어난 도구로 평가됩니다.Regarded as the most capable option in terms of performance.
코드 품질이 매우 우수한 견고한 선택지입니다.A robust option distinguished by exceptional code quality.
| 도구Tool | 만든 곳Maker | 대표 모델 (계열)Models (family) | 시작 가격From |
|---|---|---|---|
| OpenCode | SST · 오픈소스open source | 아무 모델이나 (무료·로컬·유료)any model (free·local·paid) | 무료free |
| Claude Code | Anthropic | Opus · Sonnet · Haiku | $20/mo~ |
| Codex | OpenAI | GPT‑5 codex · codex‑mini | 무료~free~ (ChatGPT) |
| Antigravity CLI | Gemini (Flash · Pro) | 무료(프리뷰)free (preview) |
모델Models · Opus · Sonnet · Haiku
Pro·Max 구독이면 웹·앱 + 터미널 Claude Code까지 하나로.Pro/Max bundles web, apps, and terminal Claude Code in one.
모델Models · GPT‑5 codex · codex‑mini
ChatGPT 로그인(구독)으로 쓰면 별도 API 종량 청구 없이 구독 한도로 사용.Sign in with ChatGPT and it runs on your subscription — no separate API metering.
모델Models · Gemini Flash · Pro (+ 일부 외부)(+ some external)
기존 Gemini CLI의 후속(2026 전환). 멀티 에이전트를 백그라운드로 실행.The successor to Gemini CLI (2026). Runs multi-agent work in the background.
모델Models · 무엇이든 (무료 Zen·OpenRouter, 로컬 Ollama, 유료 API)anything (free Zen·OpenRouter, local Ollama, paid API)
특정 도구에 종속되지 않는 환경을 원하신다면 OpenCode가 가장 적합합니다.For an environment free of vendor lock-in, OpenCode is the most appropriate choice.
가격·플랜·모델은 2026년 기준이며 수시로 바뀝니다(특히 Codex·Antigravity는 2026년에 정책이 크게 바뀜). 결제 전 각 공식 가격 페이지를 꼭 확인하세요.Prices, plans, and models are as of 2026 and change often (Codex & Antigravity shifted a lot in 2026). Always confirm on each official pricing page before paying.
08 · Hermes
먼저 분명히 — Hermes Agent는 ‘코딩 도구’가 아니에요. Nous Research의 오픈소스 자율 에이전트로, 내 서버에서 돌며 쓸수록 스스로 배우고 기억하는 ‘개인 AI 비서’예요. 텔레그램·디스코드·슬랙·시그널·이메일·CLI로 대화하고, 자연어로 예약 작업까지 자동 실행해요. First, to be clear — Hermes Agent is NOT a coding tool. It's an open-source autonomous agent by Nous Research that runs on your server and learns and remembers as you use it — a personal AI assistant. Talk to it via Telegram, Discord, Slack, Signal, email, or CLI, and schedule recurring tasks in plain language.
경험에서 스킬을 만들고, 취향을 영구 기억.Builds skills from experience and remembers you.
텔레그램·디스코드·슬랙·시그널·이메일·CLI.Telegram, Discord, Slack, Signal, email, CLI.
자연어 크론으로 리포트·백업을 무인 실행.Natural-language cron runs reports/backups unattended.
내 서버에서 동작, 텔레메트리 없음 · 오픈소스 · 무료.Runs on your server. No telemetry · open source · free.
코딩은 Hermes의 여러 일 중 하나일 뿐. 필요하면 Codex·OpenCode를 ‘스킬’로 연결할 수 있고, Codex를 구독(OAuth)으로 붙이면 API 종량제 없이 써요. (10장)Coding is just one of many things Hermes can do. You can wire Codex/OpenCode as a “skill”, and connecting Codex via subscription OAuth avoids API metering. (ch. 10)
09 · 설치Install
한 줄 설치 스크립트가 운영체제를 자동 감지해요.A one-line installer auto-detects your OS.
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
iex (irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1)
# 설치 확인# verify
hermes --version
# 초기 설정 마법사# setup wizard
hermes setup
Hermes는 도구 호출이 많아 컨텍스트 64,000 토큰 이상 모델을 권장해요.Hermes does heavy tool-calling, so a model with 64k+ context is recommended.
10 · Codex OAuth
이 챕터는 코딩까지 시키고 싶은 사람만 보면 돼요. API 키 대신 디바이스 코드 OAuth로 ChatGPT/Codex 구독 인증 → API 종량제 없이 사용. (코딩이 목적 아니면 건너뛰어도 OK)Only for those who also want coding. Instead of an API key, use device-code OAuth to auth with your ChatGPT/Codex subscription — no API metering. (Skip it if coding isn't your goal.)
이미 Codex CLI를 쓰면 ~/.codex/auth.json 을 Hermes가 가져다 써요. 없어도 OK.If you already use Codex CLI, Hermes reuses ~/.codex/auth.json. Optional.
npm install -g @openai/codex
codex # → 'Sign in with ChatGPT'# → choose 'Sign in with ChatGPT'
hermes model → OpenAI Codex 선택 → OAuth 디바이스 코드 로그인(URL 열고 코드 입력).hermes model → choose OpenAI Codex → device-code OAuth (open the URL, enter the code).
hermes model
# (대안) 인증만 추가# (alt) just add auth
hermes auth add openai-codex
버전에 따라 이름이 다를 수 있어요 — hermes auth --help 로 확인.Names vary by version — check hermes auth --help.
API 키를 안 넣었으니 종량제 청구가 발생하지 않아요.No API key means no metered billing.
hermes
구독 OAuth를 외부 도구에서 쓰는 건 OpenAI 약관·사용 한도의 적용을 받아요. 합리적인 범위에서 사용하세요.Using subscription OAuth in third-party tools is subject to OpenAI's terms & rate limits. Use it reasonably.
11 · 사용법Usage
hermes대화형 CLI 시작start the interactive CLIhermes setup초기 설정 마법사setup wizardhermes model모델/제공사 선택pick model/providerhermes tools도구(웹검색 등) 켜고 끄기toggle tools (web search, etc.)hermes gateway메신저 게이트웨이 시작start the messaging gatewayhermes update최신 버전으로 업데이트update to latest코딩까지 시킬 때만. (※ git 저장소 안에서 실행)Only when you want coding. (※ run inside a git repo)
codex exec "설정 화면에 다크 모드 토글 추가add a dark-mode toggle to settings"
codex exec --full-auto "auth 모듈 리팩터링refactor the auth module"
Hermes는 ‘자동화·비서’ 자율 에이전트, OpenCode·Claude Code·Codex·Antigravity는 ‘코딩 전용’ CLI. 목적이 다르니 섞어 쓰면 좋아요.Hermes is an automation/assistant agent; OpenCode·Claude Code·Codex·Antigravity are coding CLIs. Different jobs — great together.
12 · FAQ
기본 터미널 사용만 익히면 시작 가능해요. 결과 검토엔 약간의 코드 이해가 도움이 됩니다.Basic terminal use is enough to start; a little code knowledge helps you review results.
네. OpenCode는 오픈소스라 무료고, Zen 무료 모델·OpenRouter :free·로컬 Ollama면 모델도 0원. 유료 CLI는 선택지예요.Yes. OpenCode is free (OSS); with Zen free models, OpenRouter :free, or local Ollama, models cost $0 too. Paid CLIs are optional.
무료·유연하면 OpenCode, Claude 모델이면 Claude Code, ChatGPT 구독이면 Codex, Gemini·구글이면 Antigravity. 자세한 건 ‘CLI 비교’.Free & flexible → OpenCode; Claude models → Claude Code; ChatGPT sub → Codex; Google/Gemini → Antigravity. See ‘Compare’.
아니에요. Hermes는 자율 비서 에이전트(기억·메신저·자연어 예약)예요. 코딩은 선택 스킬일 뿐입니다.No. Hermes is an autonomous assistant (memory, messengers, scheduled automation). Coding is just one optional skill.
API 키 대신 구독 OAuth면 사용량이 구독 한도로 처리돼 별도 종량 청구가 없어요. 단, 구독 한도·약관이 적용됩니다.With subscription OAuth (not an API key), usage runs against your plan with no separate metering. Plan limits and terms still apply.
가격·모델은 2026년 기준이고 자주 바뀌어요. 결제 전 공식 가격 페이지(푸터 링크)를 확인하세요.Prices/models are as of 2026 and change often. Check the official pricing pages (footer links) before paying.
/undo 로 되돌리고, 평소 git으로 버전 관리하면 안전해요.Use /undo, and keep everything under git for safety.