Skip to main content

No project description provided

Project description

Galadriel Agent

Setup

pip install galadriel
galadriel agent init

Run your agent

cd {your_agent_name}
python agent.py

Galadriel Agent CLI

Command-line interface for creating, building, and managing Galadriel agents.

Commands

Initialize a New Agent

Create a new agent project with all necessary files and structure.

galadriel agent init

This will prompt you for:

  • Agent name
  • Docker username (can set up with random values to start off with)
  • Docker password (can set up with random values to start off with)
  • Galadriel API key

The command creates:

  • Basic agent structure
  • Docker configuration
  • Environment files
  • Required Python files

Build Agent

Build the Docker image for your agent.

galadriel agent build [--image-name NAME]

Options:

  • --image-name: Name for the Docker image (default: "agent")

Publish Agent

Push the agent's Docker image to Docker Hub.

galadriel agent publish [--image-name NAME]

Options:

  • --image-name: Name for the Docker image (default: "agent")

Deploy Agent

Deploy the agent to the Galadriel platform.

galadriel agent deploy [--image-name NAME]

Options:

  • --image-name: Name for the Docker image (default: "agent")

Update Agent

Update an existing agent on the Galadriel platform.

galadriel agent update [--image-name NAME] [--agent-id AGENT_ID]

Options:

  • --image-name: Name for the Docker image (default: "agent")
  • --agent-id: ID of the agent to update

Get Agent State

Retrieve the current state of a deployed agent.

galadriel agent state --agent-id AGENT_ID

Required:

  • --agent-id: ID of the deployed agent

List All Agents

Get information about all deployed agents.

galadriel agent states

Destroy Agent

Remove a deployed agent from the Galadriel platform.

galadriel agent destroy AGENT_ID

Required:

  • AGENT_ID: ID of the agent to destroy

Configuration Files

.env

Required environment variables for deployment:

DOCKER_USERNAME=your_username
DOCKER_PASSWORD=your_password
GALADRIEL_API_KEY=your_api_key

.agents.env

Environment variables for the agent runtime (do not include deployment credentials):

# Example
OPENAI_API_KEY=your_key
DATABASE_URL=your_url

Examples

Create and deploy a new agent:

# Initialize new agent
galadriel init

# Build and deploy
galadriel deploy --image-name my-agent

# Check agent status
galadriel state --agent-id your-agent-id

Error Handling

  • All commands will display detailed error messages if something goes wrong
  • Check your .env and .agents.env files if you encounter authentication issues
  • Ensure Docker is running before using build/publish commands
  • Verify your Galadriel API key is valid for deployment operations

Notes

  • Make sure Docker is installed and running for build/publish operations
  • Ensure you have necessary permissions on Docker Hub
  • Keep your API keys and credentials secure
  • Don't include sensitive credentials in .agents.env

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

galadriel-0.0.5.tar.gz (964.2 kB view details)

Uploaded Source

Built Distribution

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

galadriel-0.0.5-py3-none-any.whl (985.3 kB view details)

Uploaded Python 3

File details

Details for the file galadriel-0.0.5.tar.gz.

File metadata

  • Download URL: galadriel-0.0.5.tar.gz
  • Upload date:
  • Size: 964.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for galadriel-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e7eac0a0ef0851510ec4ac4a5bd42506126bed59c825bc987a4719f6f7c864d8
MD5 8c9a7b015e030bd5033dcb19e8162d10
BLAKE2b-256 9d8d9eddf081414788c5e867b722da27149763750fd36c21351c99f542244c90

See more details on using hashes here.

File details

Details for the file galadriel-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: galadriel-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 985.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for galadriel-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 47ce092d046163a4da9d0a0b6fe13c7c7b99013f3b89e70091f617294dcdfe93
MD5 0e88d9969f46f34f0890d9f68e22bf64
BLAKE2b-256 7809e828eb606f4fd33f2e6c3986b37d4adf8f3df419c3687ff18b02ee8eb4ed

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