Spaces:
Configuration error
Configuration error
Download scripts/write-auth-profile.py from Nitishkumar-ai/INIclaw: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/Nitishkumar-ai/INIclaw/resolve/main/scripts/write-auth-profile.py
- Command line
-
hf download hf://spaces/Nitishkumar-ai/INIclaw/scripts/write-auth-profile.py
-
curl -L -o write-auth-profile.py https://huggingface.co/spaces/Nitishkumar-ai/INIclaw/resolve/main/scripts/write-auth-profile.py
397 Bytes
| 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}") | |