Segment

v1.0.0

Segment — manage sources, destinations, events, and tracking plans via Config & Tracking APIs

0· 342·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for aiwithabidi/segment.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Segment" (aiwithabidi/segment) from ClawHub.
Skill page: https://clawhub.ai/aiwithabidi/segment
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: SEGMENT_ACCESS_TOKEN, SEGMENT_WRITE_KEY
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install segment

ClawHub CLI

Package manager switcher

npx clawhub@latest install segment
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included CLI script which calls Segment Config & Tracking APIs. Requested credentials (SEGMENT_ACCESS_TOKEN and SEGMENT_WRITE_KEY) are plausible for Segment usage.
Instruction Scope
SKILL.md tells the agent to run the included Python CLI. The CLI only performs HTTP calls to api.segmentapis.com and prints JSON (or human-readable output). It also attempts to read environment variables and falls back to a .env file in WORKSPACE or ~/.openclaw/workspace which is within expected scope but worth noting because it reads a file on disk to locate credentials.
Install Mechanism
No install spec; this is instruction-only with an included Python script that uses only the stdlib. Nothing is downloaded or written to disk by an installer.
Credentials
The skill requires SEGMENT_ACCESS_TOKEN (used as the Bearer auth header) and SEGMENT_WRITE_KEY (declared but not actually referenced by the script). The script also reads the WORKSPACE env var (undocumented in SKILL.md) to locate a fallback .env file. Reading .env to obtain only the declared variables is expected, but you should be aware it will inspect that file to find credentials.
Persistence & Privilege
always is false and the skill does not modify other skills or agent-wide settings. It does not request permanent elevated privileges.
Assessment
This skill appears to do what it claims: it runs a local Python CLI that calls Segment's APIs at https://api.segmentapis.com. Before installing, note: (1) you must provide SEGMENT_ACCESS_TOKEN (used by the script) and SEGMENT_WRITE_KEY (declared but not referenced by the script) — only give tokens with the minimal necessary permissions; (2) the script will look for credentials in a .env file under WORKSPACE or ~/.openclaw/workspace if the env vars are missing, so avoid storing broad secrets in that file if it's shared; (3) there are no remote installers or hidden endpoints. If you need the declared write key to actually be used, ask the author to clarify or update the script; otherwise the requests will be authenticated with the access token only.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📊 Clawdis
EnvSEGMENT_ACCESS_TOKEN, SEGMENT_WRITE_KEY
Primary envSEGMENT_ACCESS_TOKEN
latestvk978wnbxtwhw9j4qzs8z3nwvxn82cyp6
342downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

📊 Segment

Segment — manage sources, destinations, events, and tracking plans via Config & Tracking APIs

Requirements

VariableRequiredDescription
SEGMENT_ACCESS_TOKENConfig API token
SEGMENT_WRITE_KEYSource write key

Quick Start

# List sources
python3 {{baseDir}}/scripts/segment.py sources

# Get source
python3 {{baseDir}}/scripts/segment.py source-get id <value>

# Create source
python3 {{baseDir}}/scripts/segment.py source-create --name <value> --catalog_name <value>

# Delete source
python3 {{baseDir}}/scripts/segment.py source-delete id <value>

# List destinations
python3 {{baseDir}}/scripts/segment.py destinations

# Get destination
python3 {{baseDir}}/scripts/segment.py destination-get id <value>

# List warehouses
python3 {{baseDir}}/scripts/segment.py warehouses

# List source catalog
python3 {{baseDir}}/scripts/segment.py catalog-sources

All Commands

CommandDescription
sourcesList sources
source-getGet source
source-createCreate source
source-deleteDelete source
destinationsList destinations
destination-getGet destination
warehousesList warehouses
catalog-sourcesList source catalog
catalog-destinationsList destination catalog
tracking-plansList tracking plans
tracking-plan-getGet tracking plan
spacesList spaces
functionsList functions
trackSend track event
identifySend identify

Output Format

All commands output JSON by default. Add --human for readable formatted output.

python3 {{baseDir}}/scripts/segment.py <command> --human

Script Reference

ScriptDescription
{{baseDir}}/scripts/segment.pyMain CLI — all commands in one tool

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation

Comments

Loading comments...