Skip to main content

Navigate the topology of mind - ML safety through persona vectors

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

darkfield CLI

Command-line interface for the darkfield ML Safety Platform.

Installation

For Development

# From the cli directory
./install-local.sh

For Production (when published)

pip install darkfield-cli
# or
npm install -g @darkfield/cli

First Run

When you first run darkfield, you'll see:

    ██████╗  █████╗ ██████╗ ██╗  ██╗███████╗██╗███████╗██╗     ██████╗ 
    ██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██╔════╝██║██╔════╝██║     ██╔══██╗
    ██║  ██║███████║██████╔╝█████╔╝ █████╗  ██║█████╗  ██║     ██║  ██║
    ██║  ██║██╔══██║██╔══██╗██╔═██╗ ██╔══╝  ██║██╔══╝  ██║     ██║  ██║
    ██████╔╝██║  ██║██║  ██║██║  ██╗██║     ██║███████╗███████╗██████╔╝
    ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝╚══════╝╚═════╝ 

    ML Safety Platform Command Line Interface
    Protecting AI from harmful personas • v0.1.0

Quick Start

# Authenticate
darkfield auth login

# Run a demo
darkfield analyze demo --trait sycophancy

# Check your usage
darkfield billing usage

Development

# Install dependencies
pip install -e .

# Run tests
pytest

# Build distribution
python setup.py sdist bdist_wheel

Publishing

# PyPI
python -m twine upload dist/*

# NPM (wrapper)
npm publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darkfield_cli-0.2.0.tar.gz (158.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

darkfield_cli-0.2.0-py3-none-any.whl (58.4 kB view details)

Uploaded Python 3

File details

Details for the file darkfield_cli-0.2.0.tar.gz.

File metadata

  • Download URL: darkfield_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 158.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for darkfield_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9d07eb46c55b5fc18cc7c79ccee47ce948d51ed7ccbce7802675d9bd82b0ab4e
MD5 b93a4835dfe9fca0fbd5b5173d9cc6c7
BLAKE2b-256 e79a484eb0a231bd9c7d2d9b6ea5c4758c7720dc8952ec2f350476822c51e281

See more details on using hashes here.

File details

Details for the file darkfield_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: darkfield_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 58.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for darkfield_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4b5d20995fdd045d0612950abd9a9af7fbc9fd91e05ed676d2aba8c7e7fc92c
MD5 1ca086725c46a54af93fefc5de1eb64e
BLAKE2b-256 1691c736336d37595fd444a71e3e58d64b30e43c813cce4d1b4f33c52b33a924

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page