> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenfactory.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Strands

> Strands + Nebius Token Factory

**Strands** is an open source agentic framework.

[Strands docs](https://strandsagents.com/latest/documentation/docs/)

## Prerequisites

1. [Create an API key](https://tokenfactory.nebius.com/project/api-keys) to authorize requests to Nebius Token Factory.
2. Save the API key into a `NEBIUS_API_KEY` environment variable:

   ```shellscript theme={null}
   export NEBIUS_API_KEY="<API_key>"
   ```
3. Install the `strands-agents` and other packages:

   ```shellscript theme={null}
   pip install strands-agents 'strands-agents[litellm]' strands-agents-tools
   ```

## Quickstart

We can access Nebius AI models via LiteLLM API.

```python theme={null}
from strands import Agent
from strands.models.litellm import LiteLLMModel
from strands_tools import calculator

model = LiteLLMModel(
    client_args={
        "api_key": os.environ.get("NEBIUS_API_KEY"),
    },
    # **model_config
    model_id="nebius/meta-llama/Llama-3.3-70B-Instruct",
    params={
        "max_tokens": 1000,
        "temperature": 0.7,
    }
)

agent = Agent(model=model, tools=[calculator])
response = agent("What is 2+2")
print(response)
```

## More Examples

View [more examples](https://github.com/nebius/token-factory-cookbook/blob/main/agents/README.md#strands-agent) in our cookbook.
