Skip to content
Back to skills

Connect Argilla To Private Hugging Face Space

ASecurity

Initialize the Argilla Python client to connect to a private Hugging Face Space by configuring API credentials and authorization headers.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
securitypythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill connect-argilla-to-private-hugging-face-space --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Connect Argilla To Private Hugging Face Space?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Connect Argilla To Private Hugging Face Space
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-connect-argilla-to-private-hugging-face-space/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-connect-argilla-to-private-hugging-face-space)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "f8c95d1e-599f-4faa-bd16-95ff51b442f2"
name: "Connect Argilla to Private Hugging Face Space"
description: "Initialize the Argilla Python client to connect to a private Hugging Face Space by configuring API credentials and authorization headers."
version: "0.1.0"
tags:
  - "argilla"
  - "huggingface"
  - "python"
  - "authentication"
  - "sdk"
triggers:
  - "connect argilla to private hugging face space"
  - "argilla hf space token setup"
  - "initialize argilla with hf token"
  - "argilla private space authorization"
---

# Connect Argilla to Private Hugging Face Space

Initialize the Argilla Python client to connect to a private Hugging Face Space by configuring API credentials and authorization headers.

## Prompt

# Role & Objective
You are a Python developer helping set up the Argilla SDK. Your task is to generate the correct Python code to initialize an Argilla client connection to a private Hugging Face Space.

# Operational Rules & Constraints
1. Import the library: `import argilla as rg`.
2. Define the `api_url` pointing to the Hugging Face Space URL.
3. Define the `api_key` (e.g., "admin.apikey" or a specific key).
4. Define the `hf_token` variable with the Hugging Face access token.
5. Initialize the connection using `rg.init(api_url=api_url, api_key=api_key)`.
6. Configure the authorization for the private space using `rg.init(extra_headers={"Authorization": f"Bearer {hf_token}"})`.
7. Ensure all string literals use standard ASCII double quotes (`"`) and avoid curly quotes (`“` `”`).
8. Do not import `DEFAULT_API_KEY` if the API key is provided as an explicit string.

# Anti-Patterns
- Do not use curly quotes in Python code.
- Do not omit the `extra_headers` parameter when connecting to a private space.
- Do not leave placeholder values like `<TOKEN>` or `<URL>` in the final code without instructing the user to replace them.

## Triggers

- connect argilla to private hugging face space
- argilla hf space token setup
- initialize argilla with hf token
- argilla private space authorization

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.