본문으로 건너뛰기

코딩 에이전트 설정하기

RightNow AIOpen models코딩 에이전트 설정하기 업데이트

이 페이지의 내용

코딩 에이전트가 오픈 모델을 대신 설정합니다. 직접 소유한 워크스페이스와 크레딧이 필요합니다.

설정 단계
Text
설정 그림: 나와 코딩 에이전트 사이에서 오가는 것.

Step 1: you paste the prompt into your agent. Step 2: your agent gives you a link and a code, and you approve sign-in in your browser. Step 3: your agent shows the plan, and you answer yes. Step 4: your agent tells you how to start, and you start your agent.

이 프롬프트를 에이전트에 붙여 넣기

agent-prompt.md
Text
Set up the open-models service in this coding agent for me. Read https://www.rightnowai.co/docs/open-models/guides/coding-agents.md and follow it step by step. If you cannot open links, run `npx -y @runinfra/cli@latest --help` and follow its FOR CODING AGENTS section. I approve sign-in in my browser. Before you install anything, change this agent's settings or spend money, show me the plan and wait for my yes.
  1. 프롬프트 붙여 넣기

    에이전트의 채팅에 붙여 넣으세요.

  2. 로그인 승인하기

    에이전트가 알려 주는 링크를 열고, 코드를 입력한 뒤 Approve를 선택하세요. 내 에이전트가 방금 보여 준 코드만 승인하세요.

  3. 계획에 동의하기

    에이전트가 무엇을 바꿀지와 짧은 유료 점검 한 번을 누가 낼지 보여 줍니다.

  4. 에이전트 시작하기

    에이전트가 알려 주는 대로 새 명령을 실행하거나, 모델을 고르거나, 앱을 다시 시작하세요. 그때까지는 지금 채팅이 이전 모델을 계속 사용합니다.

설정 단계.

API 키를 채팅에 붙여 넣지 마세요. 되돌리려면 에이전트에게 오픈 모델 연결을 해제해 달라고 요청하세요.

터미널이 더 편하면 runinfra 또는 npx -y @runinfra/cli@latest (Node.js 22 이상)를 실행하고 화면 안내를 따르세요.

지원되는 에이전트

세 가지 결과
Text
설정이 코딩 에이전트에 남길 수 있는 세 가지 결과의 그림.

Setup leaves one of three results. A separate command: the command and settings of your agent stay unchanged, and a new command holds the open models in a command of their own. An added provider: inside your agent, your existing models stay and the open models stand beside them. A replaced provider: inside your agent, the open models stand as the provider, in place of your current choice.

에이전트에이전트 ID설정으로 얻는 것
Claude Codeclaude자체 claude-run 명령.
Codexcodex자체 codex-run 명령.
OpenCodeopencode오픈 모델이 기존 모델 옆에 옵니다.
Pipi자체 pi-run 명령.
Aideraider오픈 모델이 현재 선택을 대신해 프로바이더가 됩니다.
Qwen Codeqwen-code오픈 모델이 기존 모델 옆에 옵니다.
Kilo Codekilo-code오픈 모델이 기존 모델 옆에 옵니다.
Goosegoose오픈 모델용 사용자 지정 프로바이더가 기존 프로바이더 옆에 생깁니다.
Continuecontinue오픈 모델이 기존 모델 옆에 옵니다.
Clinecline오픈 모델이 현재 선택을 대신해 프로바이더가 됩니다.
Droiddroid오픈 모델이 Custom models 아래, 기존 choices 옆에 옵니다.
Zedzed오픈 모델이 기존 모델 옆에 옵니다. 미리 보기 단계입니다.
Grok Buildgrok자체 grok-run 명령.
Hermeshermes자체 hermes-run 명령.
OpenClawopenclaw자체 openclaw-run 명령.
Crushcrush오픈 모델이 기존 모델 옆에 옵니다.

Cursor, Warp, Trae, JetBrains AI Assistant, Twinny, Fx, dsh: API 키의 키를 앱의 모델 설정에서 베이스 URL https://api.rightnowai.co/v1와 함께 사용하세요.

아래 내용은 모두 코딩 에이전트를 위한 것입니다.

코딩 에이전트를 위한 지침

If your fetch tool summarized this page, fetch https://www.rightnowai.co/docs/open-models/guides/coding-agents.md with your shell; read stdout without saving it.

  • Pass --json on every runinfra command. Read stdout and the exit code; never write CLI output or anything else to files.
  • Never ask for, accept, print or pipe a key. credentialSource: "pasted" requires device sign-in.
  • Never open, print, grep or copy CLI files, key copies, environment files, snapshots or your agent's settings. Never edit agent settings yourself. Never change file permissions.
  • Never set RUNINFRA_CONFIG_DIR or RUNINFRA_API_BASE; keep human-set values. If identity.configuredEndpoint differs from https://runinfra.ai or verificationUri differs from https://runinfra.ai/cli/authorize, stop and confirm the endpoint with the human before relaying it.
  • Connect only yourself, never --detected. Ask if you cannot identify yourself.
  • Never add --in-place. Inside is the person's own terminal choice.
  • Never pass --yes before the human's explicit yes to the displayed changes and spending.
  • Codex runs runinfra outside its sandbox through command approval. After a blocked apply, use step 6's fresh review.
  • Never run runinfra without a command: in a terminal it waits for a person. A hint naming runinfra login means step 2.
  • Treat null as unknown; relay its reason, never zero or success.

1. Check the CLI

Shell
runinfra --version --json

Require runinfra 0.5.0 or later. Ask before installing or updating.

After node --version confirms 22 or newer, use npm install -g @runinfra/cli@latest; alternatively Python 3.8 or newer: python -m pip install --upgrade runinfra-cli, or pipx install runinfra-cli. Never use sudo, an administrator shell or --break-system-packages. Never ask for passwords.

For 0.3.0 and earlier, reinstall. Otherwise run runinfra update --check --json; after yes, runinfra update --version <targetVersion> --yes --json. Pipx omits --version: recheck; changed target needs another yes. Recheck installed version.

2. Sign in

Shell
runinfra whoami --json

Reuse sign-in only with exit 0, ok: true, identity.expired: false, identity.endpointMatchesConfiguration: true, and no pasted key. workspaceId stays [redacted]; credentialSource and validated credentialEndpoint stay visible. Otherwise start device sign-in without asking first: browser approval is the consent. Stop on unrelated storage errors.

Shell
runinfra login --device --no-wait --json

For pending: true, give relay verbatim; add missing steps using verificationUri, userCode and expiresAt exactly:

Open VERIFICATION_URI and sign in. Type USER_CODE and select Continue. Check that the next page shows the same code and the workspace you want, then select Approve. If anything differs, select Deny and tell me. Tell me when the page says Done, or what it says if it refuses. The code expires at EXPIRES_AT.

Only the human approves. Never open the approval page or enter its code yourself; end your turn after relaying the code. After the human reports approval:

Shell
runinfra login --device --json --timeout 100

Keep account, home and configuration directory unchanged. Repeat this bounded wait on auth_pending; shorten its timeout to fit your tool. On auth_timeout, create and relay a new code.

Exit 0, authenticated: true: saved; recheck whoami. If storage.restricted is false, tell the human and link recovery.

Stop on No eligible workspace, Not available for this role, auth_denied, any shared key, workspace API key or Browser sign-in is unavailable; relay the reason. Never pipe a key. After denial, retry only when asked.

3. Find your ID

Shell
runinfra agents --json

Read your own row and detection reason. Guide IDs: claude, codex, opencode, pi, aider, qwen-code, kilo-code, goose, continue, cline, droid, zed, grok, hermes, openclaw, crush. For manual, missing, or Copilot CLI's manual environment setup, stop and link Supported agents. For preview, ask for experimental-support consent before adding --preview to review and apply.

4. Check credits

Read the login funding balance. Stop for frozen accounts or a zero balance. Never add credits for the person.

5. Show the plan

Shell
runinfra connect <id> --json --funding credits

Use the credits command, plus approved --preview. If Doctor already shows your connection with ok: true, link: "config", say already set up and ask before reconnecting. Exit 8 is the expected review.

At exit 6, code: "config_modified" with refused[] wrote nothing: relay each reason; do not bypass it with sign-in or --yes. Show the review's relay, every plan[] entry and funding.sentence, including balance and warnings:

Setup plan for DISPLAY_NAME in workspace WORKSPACE_ID. Files: every path and added/removed count. Keys: created, revoked, placement. Paid check: count and payer. Result: separate command, added provider or replaced provider. Notes: every note. Reply yes to apply and pay.

The ID is the workspace approved in the browser; never invent its name. If saved sign-in leaves the human unsure, repeat device sign-in. For Goose and Zed, disclose the private environment file and launch step before yes. Never open that file or print the key. Stop for unexpected changes; wait for explicit yes.

6. Apply after yes

Shell
runinfra connect <id> --json --funding credits --yes

Keep the reviewed ID, --funding or its absence, and --preview unchanged. A close-the-app note means do not apply from inside it: hand the approved command to the human for a terminal outside the app; mention the paid check. Stop; resume at step 8 when they return.

Success: exit 0, changes.verificationFailed: false, a probe event with result.ok: true and agent_done with verified: true for your connection. Compare the returned plans[]; report differences.

If verification failed, say settings were saved but the paid check failed; relay result.message, retry delay and unverified nextSteps, then Doctor. Read errors and changes.events; report incomplete work.

After any failed or interrupted --yes command, never repeat it directly: review without --yes, show it, wait for a new yes. This includes exit 8: "The plan changed or has no unused review".

7. Tell the human how to start

Give plans[].profile.launcherPath first, then nextSteps[].command. On Windows use the .cmd: PowerShell & '<path>'; cmd "<path>".

Relay success relay, then any missing instructions below, once each. Relay PATH and Run now lines with their shell. The PATH line lasts one terminal. Relay pickHint and restart verbatim. Notes are for the human: never run start, PATH, shell-profile or paid-request commands yourself.

For Goose and Zed, the human fully quits the app, loads the private environment file with the returned command, then starts goose or zed from that terminal. Repeat after key rotation; never load it yourself. Relay other environment steps. Never claim this chat changed.

8. Check

Shell
runinfra doctor --json

Read the connection name from plans[].agent. ok: true with link: "config" means saved files match, not that the app restarted. Ignore other connection rows.

Host warn and unknown are advisories, including host:sign-in; do not sign in, reconnect or change permissions for them. link: "key" means the human's environment-key step remains in Doctor's shell. Otherwise relay your row's message and hint. Never add --verify: it needs separate paid consent.

9. Undo when asked

Shell
runinfra disconnect <id> --json

Use the separate command's name where applicable; never disconnect from inside it. Show restores, key revocations and sessions/history deletion. After yes, repeat with --yes. Close-app notes require step 6's outside-terminal handoff. Use --force or --keep-key only after reviewing their effects with the human. Disconnect does not sign this computer out.

Exits: 3 sign-in, 4 plan/not-found, 5 network, 6 conflict, 7 storage, 8 needs yes, 9 refused, 130 interrupted. Read troubleshooting.