You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to use or create remote pinning services with IPFS, the InterPlanetary File System.
3
+
description: Learn how to use or create remote pinning services with IPFS.
4
4
---
5
5
6
-
7
6
# Work with remote pinning services
8
7
9
-
Depending on how you use IPFS, you might find it helpful to use a **remote pinning service** instead of, or in addition to, pinning files on your local IPFS node. Whether it happens remotely or locally, **pinning** an item in IPFS identifies it as something you always wish to keep available, exempting it from the routine _garbage collection_ that IPFS does on infrequently-used items in order to efficiently manage storage space. [Learn more about local pinning →](pin-files.md)
8
+
**Pinning** in IPFS is a process that ensures that the pinned data is exempt from routine [garbage collection](../concepts/persistence.md#garbage-collection) and is therefore always available. In addition to [locally pinning files](../how-to/pin-files.md), you can use a **remote pinning service**, which abstracts this responsibility away from a local, individual node.
9
+
The appropriate solution depends on your particular use case.
10
10
11
-
If you've got just one local IPFS node that's always running, local pinning may be all you need to ensure your important items are persisted and never garbage-collected. However, using a remote pinning service — or creating your own — might be useful to you if:
12
11
13
-
- Your local node isn't always online, but you need items to be consistently available.
14
-
- You'd like to keep a persistent backup of your local node's files somewhere else.
15
-
- You don't have all the disk space you need on your local node.
16
-
- You run more than one IPFS node, and would like to use one of them as a "personal pinning service" as your preferred location for permanent storage.
12
+
1. Determine whether to [use an existing service](#when-to-use-a-remote-pinning-service) or [create your own](#when-to-create-your-own-service).
13
+
1. Follow the appropriate steps:
14
+
-[Use an existing service](#use-a-third-party-pinning-service)
15
+
-[Create your own service](#create-your-own-pinning-service)
17
16
18
-
There are a number of commercial pinning services that make it easy for you to purchase pinning capacity for your important files, some of which include Pinata, Temporal, Crust, Infura, and others. Each of these third-party services has its own unique interface for pinning files and managing those pins; this could include a GUI, an API, CLI commands, or other tooling.
17
+
## When to use a remote pinning service
19
18
20
-
However, you don't need to learn new commands or tools if your pinning service of choice supports the vendor-agnostic [IPFS Pinning Service API](https://ipfs.github.io/pinning-services-api-spec/) specification. Those services are supported within IPFS itself through the command line: `ipfs pin remote --help`.
19
+
If you have one local IPFS node that's always running, local pinning ensures that important data is persisted and never garbage collected. On the other hand, if your architecture is more complex, an existing or custom remote pinning service may be useful, especially if:
21
20
22
-
As of January 2021, [Pinata](https://pinata.cloud/) supports the [IPFS Pinning Service API endpoint](https://pinata.cloud/documentation#PinningServicesAPI), with more pinning services on the way! [Learn how to create your own →](#create-your-own-pinning-service)
21
+
- Your local node isn't always online, but data must be consistently available.
22
+
- You require a persistent backup of your local node's files.
23
+
- Your local node does not have enough disk space.
24
+
- You run more than one IPFS node, and would like to use one or more of those nodes as your preferred location for permanent storage.
23
25
24
-
## Use an existing pinning service
26
+
If you've decided that an existing service is right for you, learn [how to use an existing service](#use-a-third-party-pinning-service)
25
27
26
-
There are two methods to add an existing pinning service to your IPFS installation:
28
+
## When to create your own service
27
29
28
-
-[IPFS Desktop or IPFS Web UI](#ipfs-desktop-or-ipfs-web-ui)
29
-
-[IPFS CLI](#ipfs-cli)
30
+
If existing third-party pinning services don't meet your needs, you can create your own. Any remote pinning service compatible with the [IPFS Pinning Service API](https://ipfs.github.io/pinning-services-api-spec) can be added as a custom pinning service. This might be useful in circumstances like:
31
+
32
+
- Designating your own IPFS node(s) as the preferred location for permanent storage.
33
+
- Running a private pinning service for friends, as a business, as a public service, etc.
34
+
35
+
::: warning
36
+
Your service must use the [IPFS Pinning Service API](https://ipfs.github.io/pinning-services-api-spec) in order to be interoperable with clients using [`ipfs pin remote`](../reference/kubo/cli.md#ipfs-pin-remote) commands.
37
+
:::
38
+
39
+
If you've decided that creating your own pinning service is right for you, learn [how to create your own pinning service](#create-your-own-pinning-service).
40
+
41
+
## Use a third-party pinning service
42
+
43
+
Third-party pinning services allow you to purchase pinning capacity for important data. Each service has its own approach to pinning data and managing pins, so users should do their research to ensure that the service meets their particular needs. Service providers include, but are not limited to:
44
+
45
+
-[Pinata](https://pinata.cloud/)
46
+
-[Filebase](https://filebase.com/)
47
+
-[Temporal](https://temporal.cloud/)
48
+
-[Crust](https://crust.network/)
49
+
-[Infura](https://infura.io/)
50
+
51
+
::: callout
52
+
As of June 2023, [Filebase](https://filebase.com) and [Pinata](https://pinata.cloud/) support the [IPFS Pinning Service API endpoint](https://github.com/ipfs/pinning-services-api-spec).
53
+
:::
30
54
31
55
To add and use a remote pinning service directly in IPFS, you'll first need to have an account with that service.
32
56
57
+
The method by which you add a remote pinning service depends on the way in which you are using IPFS:
58
+
59
+
-[IPFS Desktop or IPFS Web UI](#ipfs-desktop-or-ipfs-web-ui)
60
+
-[IPFS Kubo](#ipfs-kubo)
61
+
33
62
### IPFS Desktop or IPFS Web UI
34
63
35
-
You can add your favorite pinning service(s) to IPFS Desktop/Web UI directly, enabling you to pin and unpin items from the Files screen in the same way you would add or remove local pins.
64
+
You can add your favorite pinning service(s) to [IPFS Desktop](../install/ipfs-desktop.md) or [Web UI](https://github.com/ipfs/ipfs-webui) directly, enabling you to pin and unpin items via a UI similar to how you would add or remove local pins.
36
65
37
-
#### Adding a new pinningservice
66
+
First, [add the pinning service](#add-a-pinning-service-in-the-ui). Then, you can [use it](#use-a-pinning-service-in-the-ui).
38
67
39
-
To add a new pinning service, open up IPFS Desktop or Web UI, navigate to the **Pinning Services** section of the **Settings** screen, and click the **Add Service** button:
68
+
#### Add a pinning service in the UI
40
69
41
-
> 
70
+
To add a new pinning service to IPFS Desktop or Web UI:
42
71
43
-
Then, select your chosen pinning service from the modal that pops up. If the pinning service you'd like to add isn't listed in that modal, don't worry — you can add any remote pinning service that supports the IPFS Pinning Service API by clicking the **Add a custom one** link.
72
+
1. Start IPFS Desktop or Web UI
73
+
1. In **Settings** , navigate to **Pinning Services**.
74
+
1. Click the **Add Service** button.
44
75
45
-
> 
76
+

46
77
47
-
In the next screen, you’ll be asked for a few other details:
78
+
1.In the pop up, select your chosen pinning service.
48
79
49
-
| Preconfigured service (e.g., Pinata) | Custom service |
50
-
| ---- | ---- |
51
-
|||
80
+
If the pinning service you'd like to use isn't listed in that modal, click **Add a custom one** to add any remote pinning service that supports the [IPFS Pinning Service API spec](https://github.com/ipfs/pinning-services-api-spec#adoption).
52
81
53
-
- A **nickname** for this service. This can be helpful if, for example, you want to add two accounts from the same service.
54
-
- The URL for your service's **API endpoint**.
55
-
_Note: This field only appears if you've selected a custom pinning service!_
56
-
- Your **secret access token**. This is the unique token provided to you by the pinning service — check its documentation for more info.
57
-
_To illustrate, example below shows which value should be copied from [pinata.cloud/keys](https://pinata.cloud/keys)_
Now that you’re set up, you can pin or unpin files to your new pinning service directly from the Files screen. Just right-click any file or click the **three dots** action icon in the files list, and select **Set pinning**:
93
+
Example using Filebase and [console.filebase.com/keys](https://console.filebase.com/keys):
> 
96
+
Comparison between an existing third-party service and a custom service:
97
+
| Third-party service (e.g., Pinata) | Custom service |
98
+
| ---- | ---- |
99
+
|||
69
100
70
-
### IPFS CLI
101
+
1. Click **Save**. Your new pinning service is added to the **Pinning Services** section of your **Settings** screen.
71
102
72
-
Command-line users benefit from `ipfs pin remote` commands, which simplify remote pinning operations. The built-in pinningservice API client executes all the necessary remote calls under the hood.
103
+

73
104
74
-
#### Adding a new pinning service
105
+
#### Use a pinning service in the UI
75
106
76
-
To add a new pinning service, use the following command:
107
+
Once you've [added a pinning service](#add-a-pinning-service-in-the-ui), you can quickly pin or unpin files to your new pinning service directly from the UI.
77
108
78
-
```shell
79
-
$ ipfs pin remote service add nickname https://my-pin-service.example.com/api-endpoint myAccessToken
80
-
```
109
+
To pin a file in the UI:
110
+
1. Navigate to the **Files** screen.
111
+
1. Right-click any file or click the **three dots** action icon in the files list
112
+
1. Select **Set pinning**:
113
+
114
+

81
115
82
-
-`nickname` is a unique name for this particular instantiation of a pinning service. This can be helpful if, for example, you want to add two accounts from the same service.
83
-
-`https://my-pin-service.example.com/api-endpoint` is the endpoint supplied to you by the pinning service. Check the service's documentation for more info.
84
-
-`myAccessToken` is the unique secret token provided to you by the pinning service. Check the service's documentation for more info.
116
+
### IPFS Kubo
85
117
86
-
#### Using a pinning service
118
+
IPFS Kubo provides the [`ipfs pin remote`](../reference/kubo/cli.md#ipfs-pin-remote) command to simplify remote pinning operations. The built-in pinning service API client executes all the necessary remote calls.
87
119
88
-
Here are a few CLI commands to get you started. In all examples, replace `nickname` with the unique name you gave the pinning service when you added it.
120
+
To use a remote pinning service with Kubo
121
+
122
+
#### Adding a new pinning service to Kubo
123
+
124
+
To add a new pinning service:
125
+
126
+
1. Open a terminal.
127
+
1. Use the [`pin remote service add`](https://docs.ipfs.tech/reference/kubo/cli/#ipfs-pin-remote-service-add) command to add the service:
128
+
- Give the service a `<nickname>` For example, this can be helpful if you want to add two accounts from the same service.
129
+
- Add an `<endpoint>`, which is supplied to you by the pinning service. Example: `https://my-pin-service.example.com/api-endpoint`
130
+
- Add an `<accessToken>`. This is the unique secret token provided to you by the pinning service. Check the service's documentation for more info.
131
+
132
+
```shell
133
+
ipfs pin remote service add <nickname><endpoint><accessToken>
134
+
```
135
+
136
+
Success. You can now [use the pinning service](#use-a-pinning-service-in-kubo).
137
+
138
+
#### Use a pinning service in Kubo
139
+
140
+
The following section describes various commands that allow you to use an added pinning service in Kubo. In each example, replace `<nickname>` with the unique name you gave the pinning service when you added it.
$ ipfs pin remote ls --service=nickname --status=queued,pinning,failed
@@ -113,19 +165,29 @@ $ ipfs pin remote --help
113
165
114
166
## Create your own pinning service
115
167
116
-
Obviously you aren't limited to a static list of pre-approved services. Any remote pinning service compatible with the [IPFS Pinning Service API](https://ipfs.github.io/pinning-services-api-spec) can be added as a custom pinning service — which also means that you can create your own! This might be useful in circumstances like:
168
+
If you're interested in creating your own pinning service for personal or shared use, you have two options:
169
+
170
+
1. [Generate a client and server from the OpenAPI spec](https://github.com/ipfs/pinning-services-api-spec#code-generation)
117
171
118
-
- Designating one of your own IPFS nodes to be a _personal pinning service_ as a preferred location for permanent storage.
119
-
- Running a private pinning service for your friends or company.
120
-
- Starting your own commercial pinning service.
172
+
1. [Reuse an existing solution](https://github.com/ipfs/pinning-services-api-spec#adoption) to reduce development time.
121
173
122
-
As noted above, your service must use the [IPFS Pinning Service API](https://ipfs.github.io/pinning-services-api-spec) in order to be interoperable with client behind `ipfs pin remote` commands.
174
+
Learn more about the [Pinning Service API Spec](https://github.com/ipfs/pinning-services-api-spec).
123
175
124
176
125
-
::: tip
126
-
If you're interested in creating your own pinning service for your own personal or shared use, you can [generate client and server from the OpenAPI spec](https://github.com/ipfs/pinning-services-api-spec#code-generation), reducing the development time, or [reuse an existing solution](https://github.com/ipfs/pinning-services-api-spec#adoption)
177
+
::: callout
178
+
179
+
**Make your pinning service available to the community**
180
+
181
+
If you'd like to make your custom pinning service available to all IPFS users, we welcome your submissions.
182
+
183
+
First, make sure your service works correctly by running and passing [pinning-service-compliance](https://github.com/ipfs-shipyard/pinning-service-compliance) test suite.
184
+
185
+
Once you're ready to open the doors to the public, create a pull request against the [IPFS Web UI GitHub repository](https://github.com/ipfs-shipyard/ipfs-webui) in order to add it to the default list of pinning services that are displayed in the IPFS Desktop/Web UI Settings screen, and one of the core maintainers will be in touch.
127
186
128
-
You may also wish to read continuing details on how the API is evolving in the [Pinning Service API Spec GitHub repo](https://github.com/ipfs/pinning-services-api-spec), and be part of the discussion on its further development!
129
187
:::
130
188
131
-
If you'd like to make your custom pinning service available to every IPFS user, we welcome your submissions. Once you're ready to open the doors to the public, make a PR against the [IPFS Web UI GitHub repo](https://github.com/ipfs-shipyard/ipfs-webui) in order to add it to the default list of pinning services that are displayed in the Desktop/Web UI Settings screen, and one of the core maintainers will be in touch.
189
+
190
+
## Other options
191
+
192
+
Pinning services that implement the the vendor-agnostic [IPFS Pinning Service API](https://ipfs.github.io/pinning-services-api-spec/) specification are supported directly in IPFS Kubo itself. To learn more, run the `ipfs pin remote --help` command.
0 commit comments