Overview
This guide walks you through creating your first tool on Constants. By the end, you’ll have a governed, shareable tool with a UI — no local setup required for anyone who uses it.Sign Up or Log In
Head to constants.io and create an account or sign in.You can sign up with your email address. No credit card required to get started.
Import Your Script
Click Create new Tool and choose your import method:Option A: Paste a GitHub URLOption B: Upload a Script
Drag and drop your
.py, .js, .sh, or other script files directly into the composer.Option C: Describe in Plain EnglishConfirm the Entrypoint
Constants analyzes your code and identifies the main entrypoint. Review the detected:
- Inputs: Parameters your script expects
- Outputs: What the script produces (files, data, reports)
- Dependencies: Required packages and environment
Review the Generated Spec
Constants generates a Tool spec with:
- Input/output schema with types and validation
- Resource limits (CPU, memory, timeout)
- Permission boundaries
- Version pinning (SHA)
What’s Next?
Build Your First Tool
Follow a detailed tutorial with examples
Explore Features
Learn about the Constants primitives
Tips for Better Results
Start from GitHub
Start from GitHub
Importing from a repository gives you version pinning, provenance tracking, and the ability to update when the source changes.
Use Clear Entrypoints
Use Clear Entrypoints
Scripts with a clear
if __name__ == "__main__" block or defined CLI arguments are easier to turn into Tools with accurate input/output specs.Configure Secrets
Configure Secrets
If your script needs API keys or credentials, configure them in the Tool settings. Secrets are injected at runtime with scoped permissions.
Share with Your Team
Share with Your Team
