artemiskit init
artemiskit init
Section titled “artemiskit init”Initialize ArtemisKit in your project by creating the necessary configuration files, directories, and environment variables.
Synopsis
Section titled “Synopsis”artemiskit init [options]akit init [options]Options
Section titled “Options”| Option | Description |
|---|---|
-f, --force | Overwrite existing configuration files |
--skip-env | Skip adding environment variables to .env |
What It Creates
Section titled “What It Creates”Running akit init creates the following structure:
your-project/├── artemis.config.yaml # Configuration file├── scenarios/│ └── example.yaml # Example scenario├── artemis-runs/ # Storage for run results├── artemis-output/ # Output directory for reports└── .env # Environment variables (updated)Configuration File
Section titled “Configuration File”Creates artemis.config.yaml with sensible defaults:
# ArtemisKit Configurationproject: my-project
# Default provider settingsprovider: openaimodel: gpt-4o-mini
# Provider configurationsproviders: openai: apiKey: ${OPENAI_API_KEY} defaultModel: gpt-4o-mini
azure-openai: apiKey: ${AZURE_OPENAI_API_KEY} resourceName: ${AZURE_OPENAI_RESOURCE} deploymentName: ${AZURE_OPENAI_DEPLOYMENT} apiVersion: "2024-02-15-preview"
anthropic: apiKey: ${ANTHROPIC_API_KEY} defaultModel: claude-sonnet-4-20250514
# Storage configurationstorage: type: local basePath: ./artemis-runs
# Scenarios directoryscenariosDir: ./scenarios
# Output settingsoutput: format: json dir: ./artemis-outputExample Scenario
Section titled “Example Scenario”Creates scenarios/example.yaml with working test cases:
name: Example Scenariodescription: Basic example scenario for testingversion: "1.0"provider: openaimodel: gpt-4o-minitemperature: 0
cases: - id: greeting name: Simple Greeting prompt: "Say hello in exactly 3 words." expected: type: regex pattern: "^\\w+\\s+\\w+\\s+\\w+$" tags: - greeting - basic
- id: math name: Basic Math prompt: "What is 2 + 2? Reply with just the number." expected: type: exact value: "4" tags: - math - basicEnvironment Variables
Section titled “Environment Variables”Adds the following keys to your .env file (if they don’t already exist):
# ArtemisKit Environment VariablesOPENAI_API_KEY=AZURE_OPENAI_API_KEY=AZURE_OPENAI_RESOURCE=AZURE_OPENAI_DEPLOYMENT=AZURE_OPENAI_API_VERSION=ANTHROPIC_API_KEY=Examples
Section titled “Examples”Basic Initialization
Section titled “Basic Initialization”akit initOutput:
╔═══════════════════════════════════════════════════════╗ ║ ║ ║ 🎯 Welcome to ArtemisKit ║ ║ LLM Testing & Evaluation Toolkit ║ ║ ║ ╚═══════════════════════════════════════════════════════╝
✓ Created project structure✓ Created artemis.config.yaml✓ Created scenarios/example.yaml✓ Added 6 environment variable(s) to .env
╭─────────────────────────────────────────────────────────╮ │ ✓ ArtemisKit initialized successfully! │ ├─────────────────────────────────────────────────────────┤ │ │ │ Next steps: │ │ │ │ 1. Set your API key: │ │ export OPENAI_API_KEY="sk-..." │ │ │ │ 2. Run your first test: │ │ artemiskit run scenarios/example.yaml │ │ │ │ 3. View the docs: │ │ https://artemiskit.vercel.app/docs │ │ │ ╰─────────────────────────────────────────────────────────╯Re-initialize with Force
Section titled “Re-initialize with Force”Overwrite existing configuration:
akit init --forceSkip Environment Variables
Section titled “Skip Environment Variables”If you manage environment variables separately:
akit init --skip-envExisting Files
Section titled “Existing Files”When files already exist:
- Without
--force: Skips existing files with a notice - With
--force: Overwrites existing files
$ akit init✓ Created project structureℹ Config file already exists (use --force to overwrite)ℹ Example scenario already exists (use --force to overwrite)✓ Added 2 environment variable(s) to .env ℹ Skipped 4 existing key(s): OPENAI_API_KEY, AZURE_OPENAI_API_KEY, ...Next Steps After Init
Section titled “Next Steps After Init”-
Set your API key:
Terminal window export OPENAI_API_KEY="sk-..." -
Run the example scenario:
Terminal window akit run scenarios/example.yaml -
Create your own scenarios in the
scenarios/directory -
Customize
artemis.config.yamlfor your project
See Also
Section titled “See Also”- Getting Started — Full getting started guide
- Scenario Format — Learn scenario syntax
- Configuration — Configuration options
- Providers — Set up LLM providers