Lesson 3 of 6 · 0%Onboard a provider without leaking its credentialNext
Course map

Safe Installation and First Agent

0 of 6 complete0 of 6

Lesson 3.1 · 35 minutes

Onboard a provider without leaking its credential

Use guided onboarding and a scoped test credential; keep secret material out of the workspace, logs, and evidence record.

Skip course map
Current lessonOnboard a provider without leaking its credential0% complete · 0/6 lessons

Safe Installation and First Agent

0% complete · Current: Onboard a provider without leaking its credential

Verifiedon 2026.7.1-2

Action boundary

Before you act

Expected result
A live provider check succeeds while the credential remains absent from the workspace and redacted evidence.
Failure mode
A provider key is pasted into a repository, shell history, screenshot, chat transcript, or readable agent workspace.
Rollback
Revoke the test credential, remove the onboarding state only through documented reset/uninstall paths, and start again with a new credential.

Treat provider setup as a boundary decision

Guided onboarding is the supported route for a first configuration. The CLI reference says plain openclaw onboard starts the guided flow; it can select a provider, perform a live inference check, and install a daemon when requested. A failed live check is a stop signal, not an invitation to lower the boundary or copy a key into a config file.

Lab: one provider, one revocable test credential

  1. Create a provider credential with a fixed test budget and no broad business access.
  2. Start openclaw onboard and choose exactly one provider path.
  3. Prefer the onboarding secret-reference option where it is supported. The primary secrets documentation explains that SecretRefs avoid persisting supported credentials as plaintext configuration values, but are not process isolation.
  4. Complete the live provider check. Record only pass/fail, provider name, model identifier, time, and the version—never the credential or raw response.

What not to do

Do not add keys to a repository .env, a workspace instruction file, a screenshot, a shared terminal recording, or a support ticket. Do not mistake redaction for revocation: if a credential appears in any readable place, revoke it and create a new test credential.

Scenario check

A screenshot of onboarding accidentally reveals the first characters of a key. What is the next action? Revoke and replace the key, remove the image from every destination you control, and repeat the check with a redacted capture. Editing the screenshot alone does not prove the original is inaccessible.

Source provenanceVerification and sources

Review receipt rr_setup_provider_secrets

Outcome
approved
Method
source-review
Reviewer
forge-independent-review
Reviewed

Evidence

Limitations

  • Independent source review approved the bounded secret-handling procedure; no real provider credential was accessed.

Open the public evidence snapshot

Lesson checkpoint

Ready to move on?

Mark this lesson complete when you can apply its outcome without relying on the examples above.