Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion LOCAL_AWS_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ opencode-work() {
echo "Logging in to AWS SSO ($profile)..."
aws sso login --profile "$profile" || return 1
eval "$(aws configure export-credentials --profile "$profile" --format env)"
/path/to/opencode/packages/opencode/dist/opencode-darwin-arm64/bin/opencode "$@"
/path/to/opencode/packages/opencode/dist/opencode-darwin-arm64/bin/opencode "${opencode_args[@]}"
}
```

Expand All @@ -138,6 +138,9 @@ Replace `/path/to/opencode` with where you cloned the repo (e.g. `~/Code/persona
# Login and launch
opencode-work

# Resume a previous session
opencode-work ses_2541da06dffeSyfI3ed4qvC7Tv

# Re-running after SSO session expires — just run again, it will re-authenticate
opencode-work
```
Expand Down
Loading