# HubRunnable

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/runnables/hub/HubRunnable)

An instance of a runnable stored in the LangChain Hub.

## Signature

```python
HubRunnable(
    self,
    owner_repo_commit: str,
    *,
    api_url: str | None = None,
    api_key: str | None = None,
    **kwargs: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `owner_repo_commit` | `str` | Yes | The full name of the prompt to pull from in the format of `owner/prompt_name:commit_hash` or `owner/prompt_name` or just `prompt_name` if it's your own prompt. |
| `api_url` | `str \| None` | No | The URL of the LangChain Hub API. Defaults to the hosted API service if you have an api key set, or a localhost instance if not. (default: `None`) |
| `api_key` | `str \| None` | No | The API key to use to authenticate with the LangChain Hub API. (default: `None`) |
| `**kwargs` | `Any` | No | Additional keyword arguments to pass to the parent class. (default: `{}`) |

## Extends

- `RunnableBindingBase[Input, Output]`

## Constructors

```python
__init__(
    self,
    owner_repo_commit: str,
    *,
    api_url: str | None = None,
    api_key: str | None = None,
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `owner_repo_commit` | `str` |
| `api_url` | `str \| None` |
| `api_key` | `str \| None` |


## Properties

- `owner_repo_commit`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/langchain/langchain_classic/runnables/hub.py#L7)