For ACP agents that need files in local filesystem...
# proj-agent
s
For ACP agents that need files in local filesystem for auth, add logic
secret -> file
in software-agent-sdk, this way in OpenHands/Canvas we just need to seed one secret to enable that, no need for special path https://github.com/OpenHands/software-agent-sdk/pull/3269 This can be generalized (to some extent) so that it works for general acp processes with slightly different file auth systems @chilly-france-44439
c
Actually i think in agent-canvas we do mount
~/.claude
~/codex
so we'd probably don't need this? 👀
we will need file mounting anyway to persist the conversation histories, right?
s
I can be wrong but it seems claude code doesn't auth with any file (mac = keychain) but it can auth with secret
CLAUDE_CODE_OAUTH_TOKEN
IDK I think it simplifies a lot for Clients if we use a special env secret for ACP servers that require file auth
On mac os, claude code is keychain only or
CLAUDE_CODE_OAUTH_TOKEN
On linux,
~/.claude/credentials.json
can work but
CLAUDE_CODE_OAUTH_TOKEN
definitely also works, so seems like a good idea to auth CC ACP via that env variable.
Let's continue the convo in the other thread