File size: 397 Bytes
0722e92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import json
import os

path = os.path.expanduser("~/.openclaw/agents/main/agent/auth-profiles.json")
profile = {
    "nvidia:manual": {
        "type": "api_key",
        "provider": "nvidia",
        "keyRef": {"source": "env", "id": "NVIDIA_API_KEY"},
        "profileId": "nvidia:manual",
    }
}
json.dump(profile, open(path, "w"))
os.chmod(path, 0o600)
print(f"Wrote auth profile to {path}")